1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-04 19:16:07 +02:00

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

This commit is contained in:
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

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