diff --git a/apps/labeling/labelingSimpleAnnotation.js b/apps/labeling/labelingSimpleAnnotation.js index fa29063da..d24ab9944 100644 --- a/apps/labeling/labelingSimpleAnnotation.js +++ b/apps/labeling/labelingSimpleAnnotation.js @@ -637,7 +637,7 @@ async function loadingData() { // redir user out if they've already done this $CAMIC.store.findLabelingAnnotation({"parent": labelId, "provenance.image.slide":slideId, "creator": getUserId() } ).then(x=>{ console.log(x) - if (x.len>0){ + if (x.length>0){ alert("You've already done this label.") window.removeEventListener('beforeunload', beforeUnloadHandler); window.location.href = `./roi_pick.html?slideId=${$D.params.slideId}&collectionId=${$D.params.collectionId}`;