mirror of https://github.com/apache/superset.git
fixing date/time filter keys (#3611)
This commit is contained in:
parent
6f1351fbbb
commit
912c6f6231
|
@ -149,7 +149,10 @@ class FilterBox extends React.Component {
|
||||||
// Add created options to filtersChoices, even though it doesn't exist,
|
// Add created options to filtersChoices, even though it doesn't exist,
|
||||||
// or these options will exist in query sql but invisible to end user.
|
// or these options will exist in query sql but invisible to end user.
|
||||||
for (const filterKey in this.state.selectedValues) {
|
for (const filterKey in this.state.selectedValues) {
|
||||||
if (!this.state.selectedValues.hasOwnProperty(filterKey)) {
|
if (
|
||||||
|
!this.state.selectedValues.hasOwnProperty(filterKey) ||
|
||||||
|
!(filterKey in this.props.filtersChoices)
|
||||||
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const existValues = this.props.filtersChoices[filterKey].map(f => f.id);
|
const existValues = this.props.filtersChoices[filterKey].map(f => f.id);
|
||||||
|
|
Loading…
Reference in New Issue