From b0da67d4b82fb375e5bfffb95e415aa179a8d3ab Mon Sep 17 00:00:00 2001 From: Mikael Grankvist Date: Mon, 23 Nov 2020 13:12:38 +0200 Subject: [PATCH] add comment for if --- .../plugins/application-theme-plugin/theme-generator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js index 5f74fff9a41..a502b205376 100644 --- a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js +++ b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js @@ -102,6 +102,7 @@ function generateThemeFile(themeFolder, themeName) { themeFile += imports.join(''); // Don't format as the generated file formatting will get wonky! +// If targets check that we only register the style parts once, checks exist for global css and component css const themeFileApply = `export const applyTheme = (target) => { if (!target['${globalCssFlag}']) { ${globalCssCode.join('')}