From 2fdf82af2ac83cf1af8da5644291efcf6bb00ebc Mon Sep 17 00:00:00 2001 From: Leane Hecht Date: Wed, 9 Aug 2023 10:28:32 +0200 Subject: [PATCH] Concatenate x,y coordinates before size check --- resources/assets/js/annotations/components/annotationCanvas.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/annotations/components/annotationCanvas.vue b/resources/assets/js/annotations/components/annotationCanvas.vue index 392123b32..d744e6a09 100644 --- a/resources/assets/js/annotations/components/annotationCanvas.vue +++ b/resources/assets/js/annotations/components/annotationCanvas.vue @@ -557,7 +557,7 @@ export default { } }, getShapeCoordinateSetSize(points){ - return new Set(points.map(xy => String(xy))).size; + return new Set(points.map(xy => String([xy]))).size; }, deleteSelectedAnnotations() { if (!this.modifyInProgress && this.hasSelectedAnnotations && confirm('Are you sure you want to delete all selected annotations?')) {