mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
fix(native-filters): set currentValue null when empty (#13000)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user