From dc1e47a000988b17826d673581df98b07a98e1c1 Mon Sep 17 00:00:00 2001 From: Birm Date: Tue, 9 Jul 2024 12:36:28 -0400 Subject: [PATCH] actually fix length --- apps/labeling/labelingSimpleAnnotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/labeling/labelingSimpleAnnotation.js b/apps/labeling/labelingSimpleAnnotation.js index fa29063d..d24ab994 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}`;