From b129030dbbde9c9c8c55683f23edb35714abf2c0 Mon Sep 17 00:00:00 2001 From: mitsuha Date: Thu, 4 Aug 2022 18:42:55 +0800 Subject: [PATCH] fixbug: [issue76]when click activities button, throw error; --- .../layout/src/workspace-sidebar/activities/activities.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/components/layout/src/workspace-sidebar/activities/activities.tsx b/libs/components/layout/src/workspace-sidebar/activities/activities.tsx index 52ad5d2c5c..a532d9bd02 100644 --- a/libs/components/layout/src/workspace-sidebar/activities/activities.tsx +++ b/libs/components/layout/src/workspace-sidebar/activities/activities.tsx @@ -70,12 +70,12 @@ export const Activities = () => { return; } - const RecentEditPages = + const recentEditPages = (await services.api.userConfig.getRecentEditedPages( currentSpaceId )) || []; - setRecentPages(RecentEditPages); + setRecentPages(recentEditPages); }, [currentSpaceId, userId]); useEffect(() => {