Skip to content

Commit

Permalink
fix: 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: #5913 (comment)
  • Loading branch information
eatyourgreens committed Feb 16, 2024
1 parent 1be4462 commit dbe93b4
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 dbe93b4

Please sign in to comment.