Skip to content

Commit

Permalink
fix: load hidden comps in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
raheeliftikhar5 committed Aug 31, 2023
1 parent 8beddaa commit 870c8cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type NewChildren<ChildrenCompMap extends Record<string, Comp<unknown>>> =
export function HidableView(props: { children: JSX.Element | React.ReactNode; hidden: boolean }) {
const { readOnly } = useContext(ExternalEditorContext);
if (readOnly) {
return <>{!props.hidden && props.children}</>;
return <>{props.children}</>;
} else {
return (
<>
Expand Down

0 comments on commit 870c8cb

Please sign in to comment.