diff --git a/apps/web/src/components/blocksuite/block-suite-page-list/index.tsx b/apps/web/src/components/blocksuite/block-suite-page-list/index.tsx index 3f673d56e9..2479fffb5d 100644 --- a/apps/web/src/components/blocksuite/block-suite-page-list/index.tsx +++ b/apps/web/src/components/blocksuite/block-suite-page-list/index.tsx @@ -209,11 +209,10 @@ export const BlockSuitePageList: React.FC = ({ toast(t['restored']({ title: pageMeta.title || 'Untitled' })); }, bookmarkPage: () => { + const status = pageMeta.favorite; toggleFavorite(pageMeta.id); toast( - pageMeta.favorite - ? t['Removed from Favorites']() - : t['Added to Favorites']() + status ? t['Removed from Favorites']() : t['Added to Favorites']() ); }, onDisablePublicSharing: () => {