Преглед изворни кода

set CUSTOM before getting currentSidebarContents

yuya-o пре 3 година
родитељ
комит
5dde0c7421
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/stores/ui.tsx

+ 1 - 1
packages/app/src/stores/ui.tsx

@@ -267,7 +267,7 @@ export const useSidebarCollapsed = (initialData?: boolean): SWRResponse<boolean,
 };
 
 export const useCurrentSidebarContents = (initialData?: SidebarContentsType): SWRResponse<SidebarContentsType, Error> => {
-  return useStaticSWR('sidebarContents', initialData, { fallbackData: SidebarContentsType.TREE });
+  return useStaticSWR('sidebarContents', initialData, { fallbackData: SidebarContentsType.CUSTOM });
 };
 
 export const useCurrentProductNavWidth = (initialData?: number): SWRResponse<number, Error> => {