Fix: invite (#1064)

This commit is contained in:
Qi authored and GitHub committed 2023-02-16 12:22:38 +00:00
1 parent 657681e5e1
commit 27b1196111
11 files changed
+97 -58

No files matched your search

+2 -3
View File
@@ -55,9 +55,8 @@ export const createDataCenterActions: GlobalActionsCreator<
// isOwner is useful only in the cloud
isOwner = true;
} else {
const userInfo = get().user;
// We must ensure workspace.owner exists, then ensure id same.
isOwner = workspace?.owner && userInfo?.id === workspace.owner.id;
const userInfo = get().user; // We must ensure workspace.owner exists, then ensure id same.
isOwner = isOwner = userInfo?.id === workspace?.owner?.id;
}
const pageList =