mirror of https://github.com/apache/superset.git
fix(explore): Dashboard list is unsorted in save modal (#21317)
Co-authored-by: Herbert Gainor <herbert.gainor@preset.io>
This commit is contained in:
parent
31895f412e
commit
3edc656f20
|
@ -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));
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue