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

JS-4243: Shared spaces count fix

This commit is contained in:
Mike Mhlv 2024-03-26 17:54:19 +00:00
parent f1baad4621
commit 8b26e71a3a
No known key found for this signature in database
GPG key ID: 82F8AC181346CE7F

View file

@ -42,7 +42,7 @@ const PopupSettingsSpaceIndex = observer(class PopupSettingsSpaceIndex extends R
const isAllowed = config.experimental || config.allowCollaboration;
const isShared = space.spaceAccessType == I.SpaceType.Shared;
const requestCnt = this.getRequestCnt();
const sharedCnt = spaces.filter(it => it.spaceAccessType == I.SpaceType.Shared).length;
const sharedCnt = spaces.filter(it => (it.spaceAccessType == I.SpaceType.Shared) && (it.creator == UtilSpace.getMyParticipant().id)).length;
const canWrite = UtilSpace.canParticipantWrite();
const canDelete = space.targetSpaceId != accountSpaceId;
const isShareActive = UtilSpace.isShareActive();