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: wrong share status display (#4336)

JimmFlybdc2695cafe8
diff --git a/packages/component/src/components/share-menu/share-menu.tsx b/packages/component/src/components/share-menu/share-menu.tsx
index 97925e0f2b..1114345f5d 100644
--- a/packages/component/src/components/share-menu/share-menu.tsx
+++ b/packages/component/src/components/share-menu/share-menu.tsx
@@ -32,7 +32,7 @@ export interface ShareMenuProps<
export const ShareMenu = (props: ShareMenuProps) => {
const { useIsSharedPage } = props;
- const isSharedPage = useIsSharedPage(
+ const [isSharedPage] = useIsSharedPage(
props.workspace.id,
props.currentPage.id
);