Fix 'req not defined' error

This commit is contained in:
Chewbacca 2022-12-29 09:51:48 -05:00
parent 1b7fec2fec
commit 4ea1562185
2 changed files with 1 additions and 3 deletions

View file

@ -62,7 +62,6 @@ export const baseClient = (accessToken?: string | null, baseURL: string = ''): A
headers: Object.assign(accessToken ? { headers: Object.assign(accessToken ? {
'Authorization': `Bearer ${accessToken}`, 'Authorization': `Bearer ${accessToken}`,
} : {}), } : {}),
transformResponse: [maybeParseJSON], transformResponse: [maybeParseJSON],
}); });
}; };

View file

@ -53,8 +53,7 @@ const AutosuggestAccountInput: React.FC<IAutosuggestAccountInput> = ({
setAccountIds(ImmutableOrderedSet(accountIds)); setAccountIds(ImmutableOrderedSet(accountIds));
}) })
.catch(noOp); .catch(noOp);
}, 900, { leading: false, trailing: true }), [limit]);
}, 900, { leading: true, trailing: true }), [limit]);
const handleChange: React.ChangeEventHandler<HTMLInputElement> = e => { const handleChange: React.ChangeEventHandler<HTMLInputElement> = e => {
refreshCancelToken(); refreshCancelToken();