Skip to content

Commit

Permalink
fix(views/core): iteration over None type (#14305)
Browse files Browse the repository at this point in the history
* fix(views/core): iteration over None type

* fix(views/core): apply suggestion
  • Loading branch information
rasta-rocket authored Nov 17, 2021
1 parent 9cfce64 commit c54027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def save_or_overwrite_slice(
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
Expand Down

0 comments on commit c54027a

Please sign in to comment.