Skip to content

Commit

Permalink
clear annot area first
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Oct 3, 2023
1 parent 28d5f41 commit eface03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/labeling/labelReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ function getLabelInfo(e) {
let texts = matched_labels.map(labelInfoToHtml);
document.getElementById('label_review').innerHTML = texts.join('<br/><hr/><br/>');
// render relevant annotations
document.getElementById('annot_review').innerHTML = "";
for (let label of matched_labels){
$CAMIC.store.findLabelingAnnotation({'creator': $USER, 'parent': label._id.$oid}).then(x=>{
document.getElementById('annot_review').innerHTML += x.map(labelAnnotToHtml).join('<br/><hr><br/>');
Expand Down

0 comments on commit eface03

Please sign in to comment.