mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 05:34:21 +03:00
fix: hooks error
This commit is contained in:
parent
17c79eebe4
commit
e0d31659d9
@ -84,13 +84,8 @@ export const TemporaryHelperProvider = ({
|
||||
const newWorkspacesMeta = workspacesMeta.map(
|
||||
(workspace: Workspace) => {
|
||||
if (workspace.id === workspaceId) {
|
||||
workspaceData.name && (workspace.name = workspaceData.name);
|
||||
workspaceData.avatar &&
|
||||
(workspace.avatar = workspaceData.avatar);
|
||||
workspaceData.type && (workspace.type = workspaceData.type);
|
||||
workspaceData.isPublish &&
|
||||
(workspace.isPublish = workspaceData.isPublish);
|
||||
return workspace;
|
||||
const workspaceObj = Object.assign(workspace, workspaceData);
|
||||
return workspaceObj;
|
||||
}
|
||||
return workspace;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user