This commit is contained in:
isUnknown 2025-10-08 11:53:17 +02:00
parent 6d5899a6c7
commit 10352babcd

View file

@ -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)