fix(native-filters): set currentValue null when empty (#13000)
This commit is contained in:
parent
6b615c4479
commit
bc4c837da3
|
|
@ -108,7 +108,7 @@ const CascadePopover: React.FC<CascadePopoverProps> = ({
|
|||
return activeChildren;
|
||||
}
|
||||
|
||||
if (currentValue) {
|
||||
if (currentValue !== undefined && currentValue !== null) {
|
||||
return [filter];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export default function AntdPluginFilterSelect(
|
|||
inverseSelection,
|
||||
),
|
||||
currentState: {
|
||||
value: resultValue,
|
||||
value: resultValue.length ? resultValue : null,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue