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 isDownloadTriggered = ref(false);
const step = computed( const step = computed(
() => page.value?.steps?.find((s) => s.id === 'virtualSample') ?? [] () => page.value?.steps?.find((step) => step.id === 'virtualSample') ?? []
); );
const activeTab = computed(() => const activeTab = ref(step.value.files?.dynamic ? 'dynamic' : 'static');
step.value.files?.dynamic ? 'dynamic' : 'static'
);
const allVariations = computed(() => const allVariations = computed(() =>
Object.values(step.value.files?.dynamic ?? {}).flat(1) Object.values(step.value.files?.dynamic ?? {}).flat(1)