Fix 'req not defined' error
This commit is contained in:
parent
1b7fec2fec
commit
4ea1562185
2 changed files with 1 additions and 3 deletions
|
@ -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],
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue