mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 07:18:12 +08:00
sort the embedding names for the UI (#1098)
This commit is contained in:
@@ -28,7 +28,7 @@ const LayoutChoice = (
|
|||||||
case "reset World to eq Universe": {
|
case "reset World to eq Universe": {
|
||||||
// set default to default
|
// set default to default
|
||||||
const { schema } = nextSharedState.world;
|
const { schema } = nextSharedState.world;
|
||||||
const available = schema.layout.obs.map(v => v.name);
|
const available = schema.layout.obs.map(v => v.name).sort();
|
||||||
const current = bestDefaultLayout(available);
|
const current = bestDefaultLayout(available);
|
||||||
const currentDimNames = schema.layout.obsByName[current].dims;
|
const currentDimNames = schema.layout.obsByName[current].dims;
|
||||||
return { available, current, currentDimNames };
|
return { available, current, currentDimNames };
|
||||||
|
|||||||
Reference in New Issue
Block a user