فهرست منبع

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) {
     if (areaElemWidth && linkElemWidth) {
       setIsIconHidden(linkElemWidth > areaElemWidth);
       setIsIconHidden(linkElemWidth > areaElemWidth);
     }
     }
+    else {
+      setIsIconHidden(false);
+    }
   }, [currentPage]);
   }, [currentPage]);
 
 
   const subNavElem = document.getElementById('grw-contextual-sub-nav');
   const subNavElem = document.getElementById('grw-contextual-sub-nav');