Skip to content

Commit

Permalink
fix: tabs order in pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Liu committed Feb 2, 2025
1 parent 9e5876d commit 8a0f4a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset-frontend/src/features/alerts/AlertReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -826,10 +826,13 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
})
.then(response => {
const { tab_tree: tabTree, all_tabs: allTabs } = response.json.result;
const allTabsWithOrder = tabTree.map(
(tab: { value: string }) => tab.value,
);
tabTree.push({
title: 'All Tabs',
// select tree only works with string value
value: JSON.stringify(Object.keys(allTabs)),
value: JSON.stringify(allTabsWithOrder),
});
setTabOptions(tabTree);

Expand Down

0 comments on commit 8a0f4a1

Please sign in to comment.