Skip to content

Commit

Permalink
🔥 remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoLyn committed Aug 26, 2024
1 parent d5bed31 commit eb252db
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/search/InputWithSuggester.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,9 @@ const InputWithSuggester: FC<InputWithSuggesterProps> = ({

const onInputChange = useCallback(
async (_: any, newInputValue: string) => {
console.log("-------input change ------------");
// If user type anything, then it is not a title search anymore
dispatch(updateSearchText(newInputValue));
if (newInputValue?.length > 0) {
console.log("need to refresh options");
// wait for the debounced refresh to complete
// dispatch updateCommonKey if there is any during the refreshing-options to ensure the commonKey comes from the latest options given any inputValue changed
await debounceRefreshOptions(newInputValue);
Expand Down

0 comments on commit eb252db

Please sign in to comment.