Commit c9904fab authored by joshua-gould's avatar joshua-gould

fixed check for vector

parent ebf8caa6
...@@ -464,9 +464,6 @@ morpheus.HeatMapColorScheme.prototype = { ...@@ -464,9 +464,6 @@ morpheus.HeatMapColorScheme.prototype = {
this.vector = this.project.getSortedFilteredDataset() this.vector = this.project.getSortedFilteredDataset()
.getRowMetadata().getByName( .getRowMetadata().getByName(
this.separateColorSchemeForRowMetadataField); this.separateColorSchemeForRowMetadataField);
if (this.vector == null) {
this.separateColorSchemeForRowMetadataField = null;
}
} }
this.rowValueToColorSupplier = {}; this.rowValueToColorSupplier = {};
_.each(_.keys(json.colorSchemes), function(key) { _.each(_.keys(json.colorSchemes), function(key) {
...@@ -556,7 +553,7 @@ morpheus.HeatMapColorScheme.prototype = { ...@@ -556,7 +553,7 @@ morpheus.HeatMapColorScheme.prototype = {
this.currentColorSupplier.isSizeBy(); this.currentColorSupplier.isSizeBy();
}, },
getColor : function(row, column, val) { getColor : function(row, column, val) {
if (this.separateColorSchemeForRowMetadataField !== null) { if (this.vector !== undefined) {
var tmp = this.vector.getValue(row); var tmp = this.vector.getValue(row);
if (this.value !== tmp) { if (this.value !== tmp) {
this.value = tmp; this.value = tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment