diff --git a/packages/lib-classifier/src/components/Classifier/components/SubjectViewer/components/InteractionLayer/InteractionLayer.js b/packages/lib-classifier/src/components/Classifier/components/SubjectViewer/components/InteractionLayer/InteractionLayer.js index 9ce8625585..cf8a6bf435 100644 --- a/packages/lib-classifier/src/components/Classifier/components/SubjectViewer/components/InteractionLayer/InteractionLayer.js +++ b/packages/lib-classifier/src/components/Classifier/components/SubjectViewer/components/InteractionLayer/InteractionLayer.js @@ -104,7 +104,7 @@ function InteractionLayer({ mark.setSubTaskVisibility(false) // Add a time value for tools that care about time. For most tools, this value is ignored. mark.setVideoTime(timeStamp, duration) - const markIDs = marks.map((mark) => mark.id) + const markIDs = annotation.value?.map((mark) => mark.id) annotation.update([...markIDs, mark.id]) }