mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-28 17:08: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 */
|
||||
const s = schema.annotations.obsByName[categoryToDuplicate];
|
||||
const s = schema.annotations.obsByName[name];
|
||||
if (s.categories.indexOf(unassignedCategoryLabel) === -1) {
|
||||
s.categories = s.categories.concat(unassignedCategoryLabel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user