fix: replace noop function (#2744)

(cherry picked from commit af6f431c15)
This commit is contained in:
Himself65
2023-06-09 16:00:44 +08:00
committed by himself65
parent 4313b00dbe
commit c2c2ccbf5d
12 changed files with 37 additions and 12 deletions

View File

@@ -43,7 +43,7 @@ export function useBlockSuiteWorkspaceAvatarUrl(
dispose.dispose();
};
}
return () => {};
return;
}, [blockSuiteWorkspace]);
return [avatar ?? null, setAvatar] as const;
}