Desktop: Fixes #5111: Joplin crashes when trying to Change application layout (#5134)

pull/5137/head
mbalint 2021-07-06 15:57:48 +03:00 committed by GitHub
parent a8bc9d2a63
commit 4ae5108717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);