Skip to content

Commit

Permalink
fix(explore): Dashboard list is unsorted in save modal (#21317)
Browse files Browse the repository at this point in the history
Co-authored-by: Herbert Gainor <herbert.gainor@preset.io>
  • Loading branch information
agl-developer and Herbert Gainor committed Oct 3, 2022
1 parent 31895f4 commit 3edc656
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions superset-frontend/src/explore/actions/saveModalActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export function fetchDashboards(userId) {
value: id,
label: (json.result[index] || {}).dashboard_title,
}));
choices.sort((a, b) =>
a.label.localeCompare(b.label, {
sensitivity: 'base',
numeric: true,
}),
);

return dispatch(fetchDashboardsSucceeded(choices));
})
Expand Down

0 comments on commit 3edc656

Please sign in to comment.