Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Feb 1, 2018
1 parent 18afd9a commit dc1f0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ const checkAndCorrectErrorsInState = (state, metadata) => {
if (availableNonGenotypeColorBys.indexOf("gt") > -1) {
availableNonGenotypeColorBys.splice(availableNonGenotypeColorBys.indexOf("gt"), 1);
}
console.error("Error detected trying to set colorBy to", state.colorBy, "(valid options are", Object.keys(metadata.color_options).join(", "), "). Setting to", availableNonGenotypeColorBys[0]);
state.colorBy = availableNonGenotypeColorBys[0];
state.defaults.colorBy = availableNonGenotypeColorBys[0];
console.error("Error detected. Setting colorBy to ", state.colorBy);
}

/* colorBy confidence */
Expand Down

0 comments on commit dc1f0cb

Please sign in to comment.