1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-11 02:13:48 +09:00

fix crash

This commit is contained in:
Andrew Simachev 2024-03-05 16:41:54 +01:00
parent 2a39425807
commit 30439eab8b
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -50,7 +50,7 @@ class PageMainImport extends React.Component<I.PageComponent, State> {
};
const space = UtilObject.getSpaceviewBySpaceId(message.spaceId);
if (!space._empty_) {
if (!space) {
this.setState({ error: translate('pageMainInviteErrorDuplicate') });
return;
};