Просмотр исходного кода

rm isEmptyPage from useIsAbleToShowPageAuthors

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

+ 1 - 2
packages/app/src/stores/ui.tsx

@@ -390,13 +390,12 @@ export const useIsAbleToShowPageAuthors = (): SWRResponse<boolean, Error> => {
   const key = 'isAbleToShowPageAuthors';
   const { data: currentPageId } = useCurrentPageId();
   const { data: isUserPage } = useIsUserPage();
-  const { data: isEmptyPage } = useIsEmptyPage();
 
   const includesUndefined = [currentPageId, isUserPage].some(v => v === undefined);
   const isPageExist = currentPageId != null;
 
   return useSWRImmutable(
-    (includesUndefined || isEmptyPage) ? null : key,
+    (includesUndefined) ? null : key,
     () => isPageExist && !isUserPage,
   );
 };