Yuki Takei há 3 anos atrás
pai
commit
4e85dbc51c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/app/src/components/Page/PageView.tsx

+ 1 - 1
packages/app/src/components/Page/PageView.tsx

@@ -70,7 +70,7 @@ export const PageView = (props: Props): JSX.Element => {
   const { data: viewOptions, mutate: mutateRendererOptions } = useViewOptions();
   const { data: viewOptions, mutate: mutateRendererOptions } = useViewOptions();
 
 
   const page = pageBySWR ?? initialPage;
   const page = pageBySWR ?? initialPage;
-  const isNotFound = isNotFoundMeta || page == null;
+  const isNotFound = isNotFoundMeta || page?.revision == null;
   const isUsersHomePagePath = isUsersHomePage(pagePath);
   const isUsersHomePagePath = isUsersHomePage(pagePath);
 
 
   // register to facade
   // register to facade