1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-11 10:18:07 +09:00

fix duplicate invite logic

This commit is contained in:
Andrew Simachev 2024-03-06 11:32:46 +01:00
parent 88afa4ae11
commit f175db5543
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) {
if (space && ![ I.SpaceStatus.Deleted ].includes(space.spaceAccountStatus)) {
this.setState({ error: translate('pageMainInviteErrorDuplicate') });
return;
};