diff --git a/packages/project-editor/lvgl/widgets/Base.tsx b/packages/project-editor/lvgl/widgets/Base.tsx index cee47412..545bf839 100644 --- a/packages/project-editor/lvgl/widgets/Base.tsx +++ b/packages/project-editor/lvgl/widgets/Base.tsx @@ -1575,7 +1575,7 @@ export class LVGLWidget extends Widget { const project = ProjectEditor.getProject(this); - if (runtime.wasm.assetsMap) { + if (runtime.wasm.assetsMap?.flowIndexes.length > 0) { const page = getAncestorOfType( this, ProjectEditor.PageClass.classInfo diff --git a/packages/project-editor/lvgl/widgets/UserWidget.tsx b/packages/project-editor/lvgl/widgets/UserWidget.tsx index 83cb0c1d..c25d9389 100644 --- a/packages/project-editor/lvgl/widgets/UserWidget.tsx +++ b/packages/project-editor/lvgl/widgets/UserWidget.tsx @@ -456,7 +456,7 @@ export class LVGLUserWidgetWidget extends LVGLWidget { const savedUserWidgetContext = runtime.lvglCreateContext; - if (runtime.wasm.assetsMap) { + if (runtime.wasm.assetsMap?.flowIndexes.length > 0) { const flow = runtime.wasm.assetsMap.flows[savedUserWidgetContext.pageIndex]; if (flow) {