Skip to content

Commit

Permalink
remove redundant array check
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Feb 10, 2021
1 parent 7da9a9c commit 8f483c7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ export default function AntdPluginFilterSelect(
),
// @ts-ignore (add to superset-ui/core)
currentState: {
value:
Array.isArray(resultValue) && resultValue.length === 0
? null
: resultValue,
value: resultValue.length ? resultValue : null,
},
});
};
Expand Down

0 comments on commit 8f483c7

Please sign in to comment.