fix(native-filters): set currentValue null when empty (#13000)

This commit is contained in:
Ville Brofeldt
2021-02-13 21:01:12 +02:00
committed by GitHub
parent 6b615c4479
commit bc4c837da3
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ const CascadePopover: React.FC<CascadePopoverProps> = ({
return activeChildren;
}
if (currentValue) {
if (currentValue !== undefined && currentValue !== null) {
return [filter];
}

View File

@@ -74,7 +74,7 @@ export default function AntdPluginFilterSelect(
inverseSelection,
),
currentState: {
value: resultValue,
value: resultValue.length ? resultValue : null,
},
});
};