Skip to content

Commit

Permalink
fix(native-filters): Fix encoding of non-temporal default values (#23779
Browse files Browse the repository at this point in the history
)
  • Loading branch information
john-bodley authored Apr 21, 2023
1 parent 3193111 commit 4b3e507
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 4b3e507

Please sign in to comment.