We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3130ef7 commit 08b220aCopy full SHA for 08b220a
src/components/run/RunRaListFilters.tsx
@@ -36,7 +36,7 @@ export const weekAgo = (): Date => {
36
const RunRaListFilters = () => {
37
const translate = useTranslate();
38
const { filterValues, setFilters } = useListContext();
39
- const form = useForm({ defaultValues: filterValues });
+ const form = useForm();
40
41
const onSubmit = useCallback(
42
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -58,7 +58,7 @@ const RunRaListFilters = () => {
58
59
// fill up filters just after opening the page
60
useEffect(() => {
61
- submit();
+ onSubmit({ defaultValues: filterValues });
62
}, [submit]);
63
64
return (
0 commit comments