From d3bab4016707174c25d3f303b1f6177e80669f76 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Sun, 5 Oct 2025 17:44:16 +0200 Subject: [PATCH] fix undefined dynamic files --- src/stores/virtualSample.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/virtualSample.js b/src/stores/virtualSample.js index 8433aed..e47bcbc 100644 --- a/src/stores/virtualSample.js +++ b/src/stores/virtualSample.js @@ -21,7 +21,7 @@ export const useVirtualSampleStore = defineStore('virtual-sample', () => { ); const allVariations = computed(() => - Object.values(step.value.files?.dynamic).flat(1) + Object.values(step.value.files?.dynamic ?? {}).flat(1) ); watch(activeTab, () => (currentFile.value = null));