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:
Bruno FERNANDO 2021-11-17 11:44:36 +01:00 committed by GitHub
parent 9cfce64959
commit c54027a0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -959,7 +959,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
slc = Slice(owners=[g.user] if g.user else [])
form_data["adhoc_filters"] = self.remove_extra_filters(
form_data.get("adhoc_filters", [])
form_data.get("adhoc_filters") or []
)
assert slc