|
|
@@ -166,7 +166,8 @@ type GrowiContextualSubNavigationProps = {
|
|
|
|
|
|
const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps): JSX.Element => {
|
|
|
|
|
|
- const { data: currentPage, mutate: mutateCurrentPage } = useSWRxCurrentPage();
|
|
|
+ const { data: shareLinkId } = useShareLinkId();
|
|
|
+ const { data: currentPage, mutate: mutateCurrentPage } = useSWRxCurrentPage(shareLinkId ?? '');
|
|
|
const path = currentPage?.path;
|
|
|
|
|
|
const revision = currentPage?.revision;
|
|
|
@@ -179,7 +180,6 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
|
|
|
const { data: currentUser } = useCurrentUser();
|
|
|
const { data: isGuestUser } = useIsGuestUser();
|
|
|
const { data: isSharedUser } = useIsSharedUser();
|
|
|
- const { data: shareLinkId } = useShareLinkId();
|
|
|
|
|
|
const { data: isAbleToShowPageManagement } = useIsAbleToShowPageManagement();
|
|
|
const { data: isAbleToShowTagLabel } = useIsAbleToShowTagLabel();
|