Adds check for broken dataset template
This commit is contained in:
parent
e7db9ee664
commit
3d323615e4
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue