mirror of https://github.com/apache/superset.git
fix(views/core): iteration over None type (#14305)
* fix(views/core): iteration over None type * fix(views/core): apply suggestion
This commit is contained in:
parent
9cfce64959
commit
c54027a0f9
|
@ -959,7 +959,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
|
||||||
slc = Slice(owners=[g.user] if g.user else [])
|
slc = Slice(owners=[g.user] if g.user else [])
|
||||||
|
|
||||||
form_data["adhoc_filters"] = self.remove_extra_filters(
|
form_data["adhoc_filters"] = self.remove_extra_filters(
|
||||||
form_data.get("adhoc_filters", [])
|
form_data.get("adhoc_filters") or []
|
||||||
)
|
)
|
||||||
|
|
||||||
assert slc
|
assert slc
|
||||||
|
|
Loading…
Reference in New Issue