mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
fix: Database List Sorted (#15619)
* sorted the database list * revisions * cloned the array * one more time with feeling * added documentation link as well
This commit is contained in:
@@ -559,7 +559,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
onChange={setDatabaseModel}
|
||||
placeholder="Choose a database..."
|
||||
>
|
||||
{availableDbs?.databases
|
||||
{[...(availableDbs?.databases || [])]
|
||||
?.sort((a: DatabaseForm, b: DatabaseForm) =>
|
||||
a.name.localeCompare(b.name),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user