Skip to content

Commit

Permalink
Fix error on live reload in development
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Jan 8, 2024
1 parent 86df408 commit 702d093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/studio/src/components/StandardUI.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function StandardUI({

return (
<>
{computedShapes.length ? (
{computedShapes?.length ? (
<Viewer
shapes={computedShapes}
hideGrid={hideGrid}
Expand Down Expand Up @@ -142,7 +142,7 @@ export default function StandardUI({
</ContextButton>
)}
</InfoMenu>
{isLoading && !!computedShapes.length && (
{isLoading && !!computedShapes?.length && (
<LoadingInfo noBg hide={niceViewer}>
<Loading size="3em" />
</LoadingInfo>
Expand Down

0 comments on commit 702d093

Please sign in to comment.