From d8ac209a96dbd295ff3987b4ffff82178231efc7 Mon Sep 17 00:00:00 2001 From: Scott Bell Date: Wed, 21 Jun 2023 20:20:35 +0200 Subject: [PATCH] Fix race condition in image annotations loading and drawing them on the canvas (#6751) fix race condition between annotation loading and drawing the annotations --- src/plugins/imagery/components/AnnotationsCanvas.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/imagery/components/AnnotationsCanvas.vue b/src/plugins/imagery/components/AnnotationsCanvas.vue index a4e1a1632b..d750c761fb 100644 --- a/src/plugins/imagery/components/AnnotationsCanvas.vue +++ b/src/plugins/imagery/components/AnnotationsCanvas.vue @@ -89,6 +89,11 @@ export default { } } }, + watch: { + imageryAnnotations() { + this.drawAnnotations(); + } + }, mounted() { this.canvas = this.$refs.canvas; this.context = this.canvas.getContext('2d');