yohei0125 преди 4 години
родител
ревизия
3d68af50ef
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/app/src/stores/ui.tsx

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

@@ -346,7 +346,7 @@ export const useIsAbleToShowPageAuthors = (): SWRResponse<boolean, Error> => {
   const isPageExist = currentPageId != null;
 
   return useSWRImmutable(
-    includesUndefined || isEmptyPageInNotFoundContext ? null : key,
+    (includesUndefined || isEmptyPageInNotFoundContext) ? null : key,
     () => isPageExist && !isUserPage,
   );
 };