mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-09 10:58:12 +08:00
fix 1090 - add unassigned label to the new category, not the source category (#1094)
This commit is contained in:
@@ -72,7 +72,7 @@ const Universe = (state = null, action, nextSharedState, prevSharedState) => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
/* if we are duplicating a non-writable annotation, it may not have an unassigned category */
|
/* if we are duplicating a non-writable annotation, it may not have an unassigned category */
|
||||||
const s = schema.annotations.obsByName[categoryToDuplicate];
|
const s = schema.annotations.obsByName[name];
|
||||||
if (s.categories.indexOf(unassignedCategoryLabel) === -1) {
|
if (s.categories.indexOf(unassignedCategoryLabel) === -1) {
|
||||||
s.categories = s.categories.concat(unassignedCategoryLabel);
|
s.categories = s.categories.concat(unassignedCategoryLabel);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user