mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 14:01:44 +03:00
fixbug: [issue76]when click activities button, throw error;
This commit is contained in:
parent
f0713400d0
commit
b129030dbb
@ -70,12 +70,12 @@ export const Activities = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const RecentEditPages =
|
const recentEditPages =
|
||||||
(await services.api.userConfig.getRecentEditedPages(
|
(await services.api.userConfig.getRecentEditedPages(
|
||||||
currentSpaceId
|
currentSpaceId
|
||||||
)) || [];
|
)) || [];
|
||||||
|
|
||||||
setRecentPages(RecentEditPages);
|
setRecentPages(recentEditPages);
|
||||||
}, [currentSpaceId, userId]);
|
}, [currentSpaceId, userId]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user