Browse Source

remove unnecessary condition

yohei0125 4 years ago
parent
commit
d531eab731
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/components/Navbar/SubNavButtons.tsx

+ 1 - 1
packages/app/src/components/Navbar/SubNavButtons.tsx

@@ -218,7 +218,7 @@ export const SubNavButtons = (props: SubNavButtonsProps): JSX.Element => {
 
   const { data: pageInfo, error } = useSWRxPageInfo(pageId ?? null, shareLinkId);
 
-  if (pageId == null || error != null) {
+  if (error != null) {
     return <></>;
   }