mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(explore): Dashboard list is unsorted in save modal (#21317)
Co-authored-by: Herbert Gainor <herbert.gainor@preset.io>
This commit is contained in:
@@ -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));
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user