stub additional validation for gene name

This commit is contained in:
Colin Megill
2018-10-09 17:14:05 -07:00
parent 8d07b400be
commit fff331e1f0

View File

@@ -53,6 +53,8 @@ class GeneExpression extends React.Component {
console.log(
"That's too many genes, you can have at most 15 user defined genes"
);
} else if (!_.find(world.varAnnotations, { name: this.state.gene })) {
console.log("That doesn't appear to be a valid gene name.");
} else {
dispatch(actions.requestGeneExpressionCountsPOST([this.state.gene]));
dispatch({