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)