From 18177b108fc3d4c5228bff6662336238bca00cc7 Mon Sep 17 00:00:00 2001 From: Bruce Martin Date: Thu, 9 Jan 2020 06:32:38 -0800 Subject: [PATCH] fix 1090 - add unassigned label to the new category, not the source category (#1094) --- client/src/reducers/universe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/reducers/universe.js b/client/src/reducers/universe.js index 70e252de..c8c17ac3 100644 --- a/client/src/reducers/universe.js +++ b/client/src/reducers/universe.js @@ -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); }