From c7f8675d784db3fcf8d5adf5feba5ea7a7b9b02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Tue, 28 May 2019 09:57:28 +0200 Subject: [PATCH] Ensure options is an array --- .../edit/field-types/multi-select-edit-field.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts b/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts index 250fe6e14e..35a2d49656 100644 --- a/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts +++ b/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts @@ -160,7 +160,7 @@ export class MultiSelectEditFieldComponent extends EditFieldComponent implements }); } - this.options = availableValues; + this.options = availableValues || []; this.valueOptions = this.options.map(el => { return { name: el.name, $href: el.$href }; });