瀏覽代碼

fix conditional branches

kosei-n 2 年之前
父節點
當前提交
e54f963c6d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      apps/app/src/components/PageHeader/PagePathHeader.tsx

+ 3 - 0
apps/app/src/components/PageHeader/PagePathHeader.tsx

@@ -101,6 +101,9 @@ export const PagePathHeader: FC<Props> = memo((props: Props) => {
     if (areaElemWidth && linkElemWidth) {
       setIsIconHidden(linkElemWidth > areaElemWidth);
     }
+    else {
+      setIsIconHidden(false);
+    }
   }, [currentPage]);
 
   const subNavElem = document.getElementById('grw-contextual-sub-nav');