Skip to content

Commit

Permalink
fix: null check not having a layout fidget
Browse files Browse the repository at this point in the history
  • Loading branch information
hiporox committed Jul 12, 2024
1 parent d6f65b1 commit 9a8447d
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 9a8447d

Please sign in to comment.