Skip to content

Commit

Permalink
Merge pull request #353 from raheeliftikhar5/issue-3366/load-hidden-c…
Browse files Browse the repository at this point in the history
…omps-in-preview

Load hidden comps in preview
  • Loading branch information
aaron1604 authored Aug 31, 2023
2 parents 8beddaa + 870c8cb commit 813aa2e
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 813aa2e

Please sign in to comment.