diff --git a/client/src/actions/annotation.js b/client/src/actions/annotation.js index b07f2470..de89f1d1 100644 --- a/client/src/actions/annotation.js +++ b/client/src/actions/annotation.js @@ -48,6 +48,10 @@ export const annotationCreateCategoryAction = ( const col = catToDupDf.col(categoryToDuplicate); initialValue = col.asArray(); ({ categories } = col.summarize()); + // all user-created annotations must have the unassigned category + if (!categories.includes(globals.unassignedCategoryLabel)) { + categories.push(globals.unassignedCategoryLabel); + } } else { /* else assign to the standard default value */ initialValue = globals.unassignedCategoryLabel;