diff --git a/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-model-properties.component.ts b/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-model-properties.component.ts index 1234feb774fdb4d0f6ea5fba737f452900e13502..975f10dbc58950f9b0b8ba4d9222e746b1b6632f 100644 --- a/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-model-properties.component.ts +++ b/projects/editor/src/app/components/unit-view/page-view/properties-panel/element-model-properties.component.ts @@ -53,7 +53,11 @@ export class ElementModelPropertiesComponent { addDropListOption(value: string): void { const id = this.unitService.getNewValueID(); - this.combinedProperties.value.push({ stringValue: value, id: id }); + if (this.combinedProperties.value) { + this.combinedProperties.value.push({ stringValue: value, id: id }); + } else { + this.combinedProperties.value = [{ stringValue: value, id: id }]; + } this.updateModel.emit({ property: 'value', value: this.combinedProperties.value }); }