Skip to content

Commit

Permalink
fixed #593 Pages not visible with User Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Oct 16, 2024
1 parent a01b745 commit 0ab68a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/project-editor/lvgl/widgets/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/project-editor/lvgl/widgets/UserWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0ab68a7

Please sign in to comment.