mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04: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:
parent
31895f412e
commit
3edc656f20
@ -43,6 +43,12 @@ export function fetchDashboards(userId) {
|
|||||||
value: id,
|
value: id,
|
||||||
label: (json.result[index] || {}).dashboard_title,
|
label: (json.result[index] || {}).dashboard_title,
|
||||||
}));
|
}));
|
||||||
|
choices.sort((a, b) =>
|
||||||
|
a.label.localeCompare(b.label, {
|
||||||
|
sensitivity: 'base',
|
||||||
|
numeric: true,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
return dispatch(fetchDashboardsSucceeded(choices));
|
return dispatch(fetchDashboardsSucceeded(choices));
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user