Skip to content

Commit

Permalink
Handle default visibility in block editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dabbott committed Mar 5, 2023
1 parent 61578e8 commit e7190df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/site/src/ayon/blocks/symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const heroButtonRowSymbol = SketchModel.symbolMaster({
do_objectID: 'eee85c94-7361-4bcf-8afb-f59c6e8661f7',
symbolID: buttonSymbolId,
blockText: 'Learn more #md',
isVisible: false,
}),
],
});
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/ayon/editor/BlockEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export const BlockEditor = forwardRef(function BlockEditor(
'isVisible',
);

visibility[child.do_objectID] = isVisible ?? true;
visibility[child.do_objectID] = isVisible ?? child.isVisible;
}

return visibility;
Expand Down

0 comments on commit e7190df

Please sign in to comment.