Skip to content

Commit 9d930f3

Browse files
committed
fix: add null check for sectionNames in buildAssets function
1 parent c00a669 commit 9d930f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/project-editor/build/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ export async function buildAssets(
18721872
result.EEZ_FLOW_IS_USING_CRYPTO_SHA256 = assets.isUsingCrypyoSha256;
18731873

18741874
// build eez-gui-lite source code
1875-
if (sectionNames!.indexOf("EEZ_GUI_LITE_DECL") !== -1 || sectionNames!.indexOf("EEZ_GUI_LITE_DEF") !== -1) {
1875+
if (sectionNames && (sectionNames.indexOf("EEZ_GUI_LITE_DECL") !== -1 || sectionNames.indexOf("EEZ_GUI_LITE_DEF") !== -1)) {
18761876
const buildEezGuiLite = new BuildEezGuiLite(assets);
18771877
if (sectionNames!.indexOf("EEZ_GUI_LITE_DECL") !== -1) {
18781878
result.EEZ_GUI_LITE_DECL = buildEezGuiLite.buildDecl();

0 commit comments

Comments
 (0)