mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 15:28:12 +08:00
stub additional validation for gene name
This commit is contained in:
@@ -53,6 +53,8 @@ class GeneExpression extends React.Component {
|
|||||||
console.log(
|
console.log(
|
||||||
"That's too many genes, you can have at most 15 user defined genes"
|
"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 {
|
} else {
|
||||||
dispatch(actions.requestGeneExpressionCountsPOST([this.state.gene]));
|
dispatch(actions.requestGeneExpressionCountsPOST([this.state.gene]));
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|||||||
Reference in New Issue
Block a user