From 2aa757c6b7c27fc38fd68dcdb817363eaf5f0225 Mon Sep 17 00:00:00 2001 From: David Tsay Date: Fri, 10 Feb 2023 07:27:47 -0800 Subject: [PATCH] rotate function needs to work with numbers --- src/plugins/imagery/components/Compass/Compass.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/imagery/components/Compass/Compass.vue b/src/plugins/imagery/components/Compass/Compass.vue index de40fae2dd..f74638dfc4 100644 --- a/src/plugins/imagery/components/Compass/Compass.vue +++ b/src/plugins/imagery/components/Compass/Compass.vue @@ -75,7 +75,7 @@ export default { normalizedCameraAzimuth() { return this.hasGimble ? rotate(this.cameraAzimuth) - : rotate(this.heading, -this.transformations?.rotation ?? 0); + : rotate(this.heading, -(this.transformations.rotation || 0)); }, // horizontal rotation from north in degrees heading() {