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

fixed check for vector

parent ebf8caa6
......@@ -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;
......
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