fix 1090 - add unassigned label to the new category, not the source category (#1094)

This commit is contained in:
Bruce Martin
2020-01-09 06:32:38 -08:00
committed by GitHub
parent be54d583f1
commit 18177b108f
+1 -1
View File
@@ -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);
}