diff --git a/packages/app-desktop/gui/ResizableLayout/ResizableLayout.tsx b/packages/app-desktop/gui/ResizableLayout/ResizableLayout.tsx index 086293f2cf..b0e3147041 100644 --- a/packages/app-desktop/gui/ResizableLayout/ResizableLayout.tsx +++ b/packages/app-desktop/gui/ResizableLayout/ResizableLayout.tsx @@ -143,7 +143,7 @@ function ResizableLayout(props: Props) { setResizedItem(null); } - const resizedItemMaxSize = item.key === resizedItem?.key ? resizedItem.maxSize : null; + const resizedItemMaxSize = resizedItem && item.key === resizedItem.key ? resizedItem.maxSize : null; if (!item.children) { const size = itemSize(item, parent, sizes, false);