From 1ee4dde80ceb8f0c0eb5528ff59cac638baaa1e6 Mon Sep 17 00:00:00 2001
From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com>
Date: Mon, 27 Nov 2023 23:42:00 -0500
Subject: [PATCH] fix optional check
---
.../src/components/dashboard/tabs/TargetsTab.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/photon-client/src/components/dashboard/tabs/TargetsTab.vue b/photon-client/src/components/dashboard/tabs/TargetsTab.vue
index 98171062d2..7beadca701 100644
--- a/photon-client/src/components/dashboard/tabs/TargetsTab.vue
+++ b/photon-client/src/components/dashboard/tabs/TargetsTab.vue
@@ -73,7 +73,7 @@ const currentPipelineSettings = useCameraSettingsStore().currentPipelineSettings
useCameraSettingsStore().currentPipelineSettings.solvePNPEnabled
"
>
-
{{ target.ambiguity >= 0 ? target.ambiguity?.toFixed(2) : "(In Multi-Target)" }} |
+ {{ target.ambiguity >= 0 ? target.ambiguity.toFixed(2) : "(In Multi-Target)" }} |
@@ -100,17 +100,17 @@ const currentPipelineSettings = useCameraSettingsStore().currentPipelineSettings
Tags |
- {{ useStateStore().currentPipelineResults?.multitagResult?.bestTransform.x.toFixed(2) }} m |
- {{ useStateStore().currentPipelineResults?.multitagResult?.bestTransform.y.toFixed(2) }} m |
+ {{ useStateStore().currentPipelineResults?.multitagResult?.bestTransform.x.toFixed(2) || 0 }} m |
+ {{ useStateStore().currentPipelineResults?.multitagResult?.bestTransform.y.toFixed(2) || 0 }} m |
{{
(
- useStateStore().currentPipelineResults?.multitagResult?.bestTransform.angle_z *
+ (useStateStore().currentPipelineResults?.multitagResult?.bestTransform.angle_z || 0) *
(180.0 / Math.PI)
).toFixed(2)
}}°
|
- {{ useStateStore().currentPipelineResults?.multitagResult?.fiducialIDsUsed }} |
+ {{ useStateStore().currentPipelineResults?.multitagResult?.fiducialIDsUsed || [] }} |