move var index after returns

This commit is contained in:
Colin Megill
2021-04-20 00:19:18 -07:00
parent 18ead82ee5
commit 69e7509006
+2 -1
View File
@@ -34,9 +34,10 @@ export function createColorQuery(colorMode, colorByAccessor, schema, genesets) {
];
}
case "color by geneset mean expression": {
const varIndex = schema?.annotations?.var?.index;
if (!varIndex) return null;
if (!genesets) return null;
const varIndex = schema?.annotations?.var?.index;
const _geneset = genesets.get(colorByAccessor);
const _setGenes = Array.from(_geneset.genes.keys());