Parcourir la source

refactor deps

Yuken Tezuka il y a 3 ans
Parent
commit
502ae5f599
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/app/src/components/SearchTypeahead.tsx

+ 1 - 1
packages/app/src/components/SearchTypeahead.tsx

@@ -173,7 +173,7 @@ const SearchTypeahead: ForwardRefRenderFunction<IFocusable, Props> = (props: Pro
         text: keywordOnInit,
       });
     }
-  });
+  }, [keywordOnInit]);
 
   const labelKey = useCallback((option?: IPageWithSearchMeta) => {
     return option?.data.path ?? '';