diff --git a/app/components/catalog/CatalogConfigurator.vue b/app/components/catalog/CatalogConfigurator.vue index 2fb4406..ef4de30 100644 --- a/app/components/catalog/CatalogConfigurator.vue +++ b/app/components/catalog/CatalogConfigurator.vue @@ -266,8 +266,15 @@ watch( { immediate: true }, ); -function getGroupState(group: ProductGroup) { - return groupStates[group.key]; +function getGroupState(group: ProductGroup): GroupState { + const existing = groupStates[group.key]; + if (existing) { + return existing; + } + + const created = createGroupState(group); + groupStates[group.key] = created; + return created; } function updateField(group: ProductGroup, field: ParamFieldKey, value: ParamValue) {