diff --git a/packages/web/src/widgets/WidgetColumnBar.js b/packages/web/src/widgets/WidgetColumnBar.js index 2f666bfd..c24ff284 100644 --- a/packages/web/src/widgets/WidgetColumnBar.js +++ b/packages/web/src/widgets/WidgetColumnBar.js @@ -48,7 +48,7 @@ export default function WidgetColumnBar({ children, onChangeCollapsedWidgets = u ); const toggleCollapsed = (name) => { // skip collapse last uncollapsed item - if (!childArray.find((x) => x.props.name != name && !collapsedWidgets.includes(x.props.name))) return; + if (!childArray.find((x) => x.props && x.props.name != name && !collapsedWidgets.includes(x.props.name))) return; if (collapsedWidgets.includes(name)) setCollapsedWidgets(collapsedWidgets.filter((x) => x != name)); else setCollapsedWidgets([...collapsedWidgets, name]);