Skip to content

Commit

Permalink
stupid color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianh committed Sep 10, 2018
1 parent 03ca5f3 commit 3680713
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cbWeb/js/cellBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1272,9 +1272,8 @@ var tsnePlot = function() {
var rows = legend.rows;
var n = rows.length;
var pal = null;
if (metaFieldIndex!==undefined) {
var predefColors = db.conf.metaFields[metaFieldIndex].colors;
if (predefColors!==undefined)
var predefColors = db.conf.metaFields[metaFieldIndex].colors;
if (metaFieldIndex!==undefined && predefColors!==undefined) {
pal = predefColors;
} else {
pal = makeColorPalette(palName, n);
Expand Down

0 comments on commit 3680713

Please sign in to comment.