Skip to content

Commit

Permalink
remove default promise value
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Nov 19, 2021
1 parent 50fbef3 commit c04ba74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample-app/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function SearchBar({
const answersActions = useAnswersActions();
const query = useAnswersState(state => state.query.input);
const isLoading = useAnswersState(state => state.searchStatus.isLoading);
const responseToLatestRequestRef = useRef<Promise<AutocompleteResponse|undefined>>(Promise.resolve(undefined));
const responseToLatestRequestRef = useRef<Promise<AutocompleteResponse|undefined>>();
const [ autocompleteResponse, executeAutocomplete] = useAutocomplete(isVertical);

async function executeQuery () {
Expand Down

0 comments on commit c04ba74

Please sign in to comment.