Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven committed Oct 27, 2024
1 parent e495ba5 commit 32ebb0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions superset/commands/report/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ def get_dashboard_urls(
) and feature_flag_manager.is_feature_enabled("ALERT_REPORT_TABS"):
if anchor := dashboard_state.get("anchor"):
try:
anchor_list = json.loads(anchor)
anchor_list: list[str] = json.loads(anchor)
return self._get_tabs_urls(anchor_list)
except json.JSONDecodeError:
return [self._get_tab_url(dashboard_state)]
logger.debug("Anchor value is not a list, Fall back to single tab")
return [self._get_tab_url(dashboard_state)]

dashboard = self._report_schedule.dashboard
dashboard_id_or_slug = (
Expand Down

0 comments on commit 32ebb0f

Please sign in to comment.