mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-10 10:00:48 +09:00
fix crash
This commit is contained in:
parent
530dae9be1
commit
cb105ac1c0
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ const Notification = observer(class Notification extends React.Component<I.Notif
|
|||
|
||||
};
|
||||
|
||||
if ([ I.SpaceStatus.Removing, I.SpaceStatus.Deleted ].includes(spaceview.spaceAccountStatus)) {
|
||||
// Check that space is not removed
|
||||
if (spaceview && [ I.SpaceStatus.Removing, I.SpaceStatus.Deleted ].includes(spaceview.spaceAccountStatus)) {
|
||||
buttons = buttons.filter(it => ![ 'spaceSwitch', 'spaceExport', 'spaceDelete' ].includes(it.id));
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue