Skip to content

Commit

Permalink
fix(native-filters): Fix encoding of non-temporal default values (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and sebastianliebscher committed Apr 28, 2023
1 parent f76c4b8 commit 902a71c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superset/utils/dashboard_filter_scopes_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ def convert_filter_scopes_to_native_filters( # pylint: disable=invalid-name,too
if not default:
default = config.get("defaultValue")

if default:
if config["multiple"]:
default = default.split(";")
else:
default = [default]
if default and config["multiple"]:
default = default.split(";")

if default:
if not isinstance(default, list):
default = [default]

fltr["defaultDataMask"] = {
"extraFormData": {
"filters": [
Expand Down

0 comments on commit 902a71c

Please sign in to comment.