From 10352babcde82b6ceffbf907b5ee793cecc0e3df Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 8 Oct 2025 11:53:17 +0200 Subject: [PATCH] #176 --- src/stores/virtualSample.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/stores/virtualSample.js b/src/stores/virtualSample.js index e47bcbc..4e283cd 100644 --- a/src/stores/virtualSample.js +++ b/src/stores/virtualSample.js @@ -13,12 +13,10 @@ export const useVirtualSampleStore = defineStore('virtual-sample', () => { const isDownloadTriggered = ref(false); const step = computed( - () => page.value?.steps?.find((s) => s.id === 'virtualSample') ?? [] + () => page.value?.steps?.find((step) => step.id === 'virtualSample') ?? [] ); - const activeTab = computed(() => - step.value.files?.dynamic ? 'dynamic' : 'static' - ); + const activeTab = ref(step.value.files?.dynamic ? 'dynamic' : 'static'); const allVariations = computed(() => Object.values(step.value.files?.dynamic ?? {}).flat(1)