Skip to content

Commit

Permalink
fix: null check not having a layout fidget (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiporox authored Jul 12, 2024
1 parent d6f65b1 commit 6e426c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/components/templates/Space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ export default function Space({
});
}

const LayoutFidget = LayoutFidgets[config.layoutDetails.layoutFidget];
const LayoutFidget =
config && config.layoutDetails && config.layoutDetails.layoutConfig
? LayoutFidgets[config.layoutDetails.layoutFidget]
: LayoutFidgets["grid"];

return (
<>
Expand Down

0 comments on commit 6e426c5

Please sign in to comment.