yohei0125 3 лет назад
Родитель
Сommit
b14a1c462b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/client/services/ContextExtractor.tsx

+ 2 - 2
packages/app/src/client/services/ContextExtractor.tsx

@@ -92,7 +92,7 @@ const ContextExtractorOnce: FC = () => {
   const notFoundTargetPathOrId = JSON.parse(notFoundContentForPt?.getAttribute('data-not-found-target-path-or-id') || 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 isNotFoundPermalink = JSON.parse(notFoundContext?.getAttribute('data-is-not-found-permalink') || jsonNull);
   const isSearchPage = document.getElementById('search-page') != null;
   const isSearchPage = document.getElementById('search-page') != null;
-  const isEmptyPage = JSON.parse(notFoundContext?.getAttribute('data-page-is-empty') || jsonNull) ?? false;
+  const isEmptyPageInNotFoundContext = JSON.parse(notFoundContext?.getAttribute('data-page-is-empty') || jsonNull) ?? false;
 
 
   const grant = +(mainContent?.getAttribute('data-page-grant') || 1);
   const grant = +(mainContent?.getAttribute('data-page-grant') || 1);
   const grantGroupId = mainContent?.getAttribute('data-page-grant-group') || null;
   const grantGroupId = mainContent?.getAttribute('data-page-grant-group') || null;
@@ -153,7 +153,7 @@ const ContextExtractorOnce: FC = () => {
   useNotFoundTargetPathOrId(notFoundTargetPathOrId);
   useNotFoundTargetPathOrId(notFoundTargetPathOrId);
   useIsNotFoundPermalink(isNotFoundPermalink);
   useIsNotFoundPermalink(isNotFoundPermalink);
   useIsSearchPage(isSearchPage);
   useIsSearchPage(isSearchPage);
-  useIsEmptyPageInNotFoundContext(isEmptyPage);
+  useIsEmptyPageInNotFoundContext(isEmptyPageInNotFoundContext);
   useHasParent(hasParent);
   useHasParent(hasParent);
 
 
   // Navigation
   // Navigation