Skip to content

Commit

Permalink
convert to html, not object
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Oct 2, 2023
1 parent e8d31f0 commit 180397c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/labeling/labelReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,10 +850,9 @@ function getLabelInfo(e) {
let texts = matched_labels.map(labelInfoToHtml);
document.getElementById('label_review').innerHTML = texts.join('<br/><hr/><br/>');
// render relevant annotations
let annots = [];
for (let label of matched_labels){
$CAMIC.store.findLabelingAnnotation({'creator': $USER, 'parent': label._id.$oid}).then(x=>{
document.getElementById('annot_review').innerHTML += x.join('<br/><hr/><br/>');
document.getElementById('annot_review').innerHTML += x.map(labelAnnotToHtml).join('<br/><hr/><br/>');
});
}
}

0 comments on commit 180397c

Please sign in to comment.