Skip to content

Commit 409ab5d

Browse files
authored
Merge pull request #2824 from msupply-foundation/2822-filter-backspacing
Backspace too quickly and the query is incorrect
2 parents 8b2e2e7 + adf4737 commit 409ab5d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/packages/common/src/ui/components/inputs/Filters/TextFilter.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export const TextFilter: FC<{
2929

3030
const handleChange = (newValue: string) => {
3131
setValue(newValue);
32-
if (newValue === '') updateQuery({ [filterDefinition.urlParameter]: '' });
33-
else debouncedOnChange(newValue);
32+
debouncedOnChange(newValue);
3433
};
3534

3635
return (

0 commit comments

Comments
 (0)