mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 09:08:12 +08:00
categorical metadata performance work (#356)
* do not create unecessary option state for categories we will not display * performance improvements for categorical metadata handling
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
const Config = (
|
||||
state = {
|
||||
displayNames: null,
|
||||
features: null
|
||||
features: null,
|
||||
parameters: null
|
||||
},
|
||||
action
|
||||
) => {
|
||||
|
||||
Vendored
+1
-1
@@ -16,7 +16,7 @@ import {
|
||||
function createCategoricalAsBooleansMap(world) {
|
||||
const res = {};
|
||||
_.each(world.summary.obs, (value, key) => {
|
||||
if (value.options) {
|
||||
if (value.options && key !== "name") {
|
||||
const optionsAsBooleans = {};
|
||||
_.each(value.options, (_value, _key) => {
|
||||
optionsAsBooleans[_key] = true;
|
||||
|
||||
Reference in New Issue
Block a user