소스 검색

check lint

ryoji-s 4 년 전
부모
커밋
2826db9dcf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

+ 2 - 2
packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -247,8 +247,8 @@ const GrowiContextualSubNavigation = (props) => {
 
     const className = `d-flex flex-column align-items-end justify-content-center ${isViewMode ? ' h-50' : ''}`;
 
-    if (path == null) {
-      return <></>;
+    if (typeof path !== 'string') {
+      return;
     }
 
     return (