fix shared page mention view for non-logged in users (#2008)

This commit is contained in:
Philip Okugbe
2026-03-11 19:25:27 +00:00
committed by GitHub
parent 66c26af34b
commit 7b69727a30
2 changed files with 66 additions and 19 deletions
@@ -25,9 +25,9 @@ export default function SubpagesView(props: NodeViewProps) {
// Get subpages from shared tree if we're in a shared context
const sharedSubpages = useSharedPageSubpages(currentPageId);
const { data, isLoading, error } = useGetSidebarPagesQuery({
pageId: currentPageId,
});
const { data, isLoading, error } = useGetSidebarPagesQuery(
shareId ? null : { pageId: currentPageId },
);
const subpages = useMemo(() => {
// If we're in a shared context, use the shared subpages