diff --git a/frontend/wizard-vue/src/stores/wizard.ts b/frontend/wizard-vue/src/stores/wizard.ts index 1775fdd..d50362f 100644 --- a/frontend/wizard-vue/src/stores/wizard.ts +++ b/frontend/wizard-vue/src/stores/wizard.ts @@ -22,8 +22,8 @@ export const useWizardStore = defineStore('wizard', () => { localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(specs)); }, 100); - function updateSpec(fieldName: keyof Specs, newValue: SpecValue) { - (specs as Record)[fieldName] = newValue; + function updateSpec(fieldName: K, newValue: Specs[K]) { + specs[fieldName] = newValue; updateLocalStorage(); } function updateSpecs(newValue: Specs) {