Yuken Tezuka 3 лет назад
Родитель
Сommit
502ae5f599
1 измененных файлов с 1 добавлено и 1 удалено
  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 ?? '';