Yuki Takei 1 rok temu
rodzic
commit
05d5109b47

+ 1 - 1
apps/app/src/client/components/SearchTypeahead.tsx

@@ -125,7 +125,7 @@ const SearchTypeahead: ForwardRefRenderFunction<IFocusable, Props> = (props: Pro
    *
    *
    */
    */
   const DELAY_FOR_SUBMISSION = 100;
   const DELAY_FOR_SUBMISSION = 100;
-  const timeoutIdRef = useRef<NodeJS.Timeout>(undefined);
+  const timeoutIdRef = useRef<NodeJS.Timeout>();
 
 
   const changeHandler = useCallback((selectedItems: IPageWithSearchMeta[]) => {
   const changeHandler = useCallback((selectedItems: IPageWithSearchMeta[]) => {
     // cancel schedule to submit
     // cancel schedule to submit