mirror of
https://github.com/nasa/openmct.git
synced 2025-05-19 08:53:26 +00:00
Fix race condition in image annotations loading and drawing them on the canvas (#6751)
fix race condition between annotation loading and drawing the annotations
This commit is contained in:
parent
f254d4f078
commit
d8ac209a96
@ -89,6 +89,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
imageryAnnotations() {
|
||||||
|
this.drawAnnotations();
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.canvas = this.$refs.canvas;
|
this.canvas = this.$refs.canvas;
|
||||||
this.context = this.canvas.getContext('2d');
|
this.context = this.canvas.getContext('2d');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user