fix(client): fix filter default value (#3544)
This commit is contained in:
parent
bdc90155c4
commit
14b6c5a628
@ -27,8 +27,10 @@ export const Filter: any = observer(
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
field.initialValue = fieldSchema.defaultValue;
|
||||
}, []);
|
||||
if (fieldSchema.defaultValue) {
|
||||
field.initialValue = fieldSchema.defaultValue;
|
||||
}
|
||||
}, [fieldSchema.defaultValue]);
|
||||
return (
|
||||
<div className={className}>
|
||||
<FilterContext.Provider
|
||||
|
Loading…
Reference in New Issue
Block a user