mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
fix: make dataset list sort case insensitive (#14528)
This commit is contained in:
parent
65f90096fd
commit
4d3fb56e11
@ -68,7 +68,10 @@ class SliceModelView(
|
||||
for d in ConnectorRegistry.get_all_datasources(db.session)
|
||||
]
|
||||
payload = {
|
||||
"datasources": sorted(datasources, key=lambda d: d["label"]),
|
||||
"datasources": sorted(
|
||||
datasources,
|
||||
key=lambda d: d["label"].lower() if isinstance(d["label"], str) else "",
|
||||
),
|
||||
"common": common_bootstrap_payload(),
|
||||
"user": bootstrap_user_data(g.user),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user