From 4feb3a0d92a36af1b7a59a93c7371aa3f974c267 Mon Sep 17 00:00:00 2001 From: Alextopher Date: Thu, 19 Sep 2024 02:54:06 -0400 Subject: [PATCH] frontend: fix object detection tab model selection --- .../src/components/dashboard/tabs/ObjectDetectionTab.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/photon-client/src/components/dashboard/tabs/ObjectDetectionTab.vue b/photon-client/src/components/dashboard/tabs/ObjectDetectionTab.vue index 5952baa337..a249273cf3 100644 --- a/photon-client/src/components/dashboard/tabs/ObjectDetectionTab.vue +++ b/photon-client/src/components/dashboard/tabs/ObjectDetectionTab.vue @@ -37,7 +37,9 @@ const supportedModels = computed(() => { const selectedModel = computed({ get: () => supportedModels.value.indexOf(currentPipelineSettings.value.model), - set: (v) => useCameraSettingsStore().changeCurrentPipelineSetting({ model: supportedModels[v] }, false), + set: (v) => { + useCameraSettingsStore().changeCurrentPipelineSetting({ model: supportedModels.value[v] }, false) + }, });