mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 23:58:11 +08:00
fix for issue 1112 - all user annotation category names must be unique across all obs annotatoins (#1114)
This commit is contained in:
@@ -71,8 +71,12 @@ class Categories extends React.Component {
|
|||||||
/* allow empty string */
|
/* allow empty string */
|
||||||
if (name === "") return false;
|
if (name === "") return false;
|
||||||
|
|
||||||
const { categoricalSelection } = this.props;
|
/*
|
||||||
const allCategoryNames = Object.keys(categoricalSelection);
|
test for uniqueness against *all* annotation names, not just the subset
|
||||||
|
we render as categorical.
|
||||||
|
*/
|
||||||
|
const { schema } = this.props;
|
||||||
|
const allCategoryNames = schema.annotations.obs.columns.map(c => c.name);
|
||||||
|
|
||||||
/* check category name syntax */
|
/* check category name syntax */
|
||||||
const error = AnnotationsHelpers.annotationNameIsErroneous(name);
|
const error = AnnotationsHelpers.annotationNameIsErroneous(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user