|
|
@@ -17,7 +17,7 @@ import {
|
|
|
useCurrentPageId, usePageIdOnHackmd, usePageUser, useCurrentPagePath, useRevisionCreatedAt, useRevisionId, useRevisionIdHackmdSynced,
|
|
|
useShareLinkId, useShareLinksNumber, useTemplateTagData, useCurrentUpdatedAt, useCreator, useRevisionAuthor, useCurrentUser, useTargetAndAncestors,
|
|
|
useNotFoundTargetPathOrId, useIsSearchPage, useIsForbidden, useIsIdenticalPath, useHasParent,
|
|
|
- useIsAclEnabled, useIsSearchServiceConfigured, useIsSearchServiceReachable, useIsEnabledAttachTitleHeader, useIsNotFoundPermalink,
|
|
|
+ useIsAclEnabled, useIsSearchServiceConfigured, useIsSearchServiceReachable, useIsEnabledAttachTitleHeader,
|
|
|
useDefaultIndentSize, useIsIndentSizeForced, useCsrfToken, useIsEmptyPage, useEmptyPageId, useGrowiVersion,
|
|
|
} from '../../stores/context';
|
|
|
|
|
|
@@ -91,7 +91,6 @@ const ContextExtractorOnce: FC = () => {
|
|
|
const revisionAuthor = JSON.parse(mainContent?.getAttribute('data-page-revision-author') || jsonNull);
|
|
|
const targetAndAncestors = JSON.parse(document.getElementById('growi-pagetree-target-and-ancestors')?.textContent || jsonNull);
|
|
|
const notFoundTargetPathOrId = JSON.parse(notFoundContentForPt?.getAttribute('data-not-found-target-path-or-id') || jsonNull);
|
|
|
- const isNotFoundPermalink = JSON.parse(notFoundContext?.getAttribute('data-is-not-found-permalink') || jsonNull);
|
|
|
const isSearchPage = document.getElementById('search-page') != null;
|
|
|
const isEmptyPage = JSON.parse(mainContent?.getAttribute('data-page-is-empty') || jsonNull) ?? false;
|
|
|
|
|
|
@@ -152,7 +151,6 @@ const ContextExtractorOnce: FC = () => {
|
|
|
useRevisionAuthor(revisionAuthor);
|
|
|
useTargetAndAncestors(targetAndAncestors);
|
|
|
useNotFoundTargetPathOrId(notFoundTargetPathOrId);
|
|
|
- useIsNotFoundPermalink(isNotFoundPermalink);
|
|
|
useIsSearchPage(isSearchPage);
|
|
|
useIsEmptyPage(isEmptyPage);
|
|
|
useHasParent(hasParent);
|