Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: incorrect bookmark toast text (#2815)

Peng Xiao3755661ff6cc
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<BlockSuitePageListProps> = ({
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: () => {