Skip to content

Commit

Permalink
Store all drawn marks in the classification
Browse files Browse the repository at this point in the history
After creating a new mark, add the new mark to the previous annotation value and store this as a new annotation. Should fix a bug raised in this comment: zooniverse#5913 (comment)
  • Loading branch information
eatyourgreens committed Feb 15, 2024
1 parent 6b421ed commit 29c6f0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

Expand Down

0 comments on commit 29c6f0e

Please sign in to comment.