Adds check for broken dataset template

This commit is contained in:
apapachristou 2020-09-18 18:53:05 +03:00
parent e7db9ee664
commit 3d323615e4
1 changed files with 5 additions and 3 deletions

View File

@ -16,9 +16,11 @@ export class FieldDataOptionEditorModel extends FieldDataEditorModel<FieldDataOp
} }
fromModel(item: FieldDataOption): FieldDataOptionEditorModel { fromModel(item: FieldDataOption): FieldDataOptionEditorModel {
this.label = item.label; if (item) {
this.value = item.value; this.label = item.label;
this.source = item.source; this.value = item.value;
this.source = item.source;
}
return this; return this;
} }
} }