From c9904fab2601ff7f49f0427a3a9bdcd760b5e228 Mon Sep 17 00:00:00 2001 From: joshua-gould Date: Wed, 23 Mar 2016 20:59:32 -0400 Subject: [PATCH] fixed check for vector --- src/ui/heat_map_color_scheme.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ui/heat_map_color_scheme.js b/src/ui/heat_map_color_scheme.js index 389a617..4211f75 100644 --- a/src/ui/heat_map_color_scheme.js +++ b/src/ui/heat_map_color_scheme.js @@ -464,9 +464,6 @@ morpheus.HeatMapColorScheme.prototype = { this.vector = this.project.getSortedFilteredDataset() .getRowMetadata().getByName( this.separateColorSchemeForRowMetadataField); - if (this.vector == null) { - this.separateColorSchemeForRowMetadataField = null; - } } this.rowValueToColorSupplier = {}; _.each(_.keys(json.colorSchemes), function(key) { @@ -556,7 +553,7 @@ morpheus.HeatMapColorScheme.prototype = { this.currentColorSupplier.isSizeBy(); }, getColor : function(row, column, val) { - if (this.separateColorSchemeForRowMetadataField !== null) { + if (this.vector !== undefined) { var tmp = this.vector.getValue(row); if (this.value !== tmp) { this.value = tmp; -- GitLab