Dataset Profile Editor. CheckBox default value preview patch.

This commit is contained in:
Kristian Ntavidi 2021-04-02 12:59:24 +03:00
parent b04e2b3482
commit dc39cf9fdd
1 changed files with 5 additions and 1 deletions

View File

@ -209,7 +209,11 @@ export class DatasetProfileEditorCompositeFieldComponent implements OnInit, OnCh
multiplicity: {max:formValue.multiplicity.max, min : formValue.multiplicity.min},
multiplicityItems:null,
fields: fields.map(editorField=>{
return new DatasetDescriptionFieldEditorModel().fromModel(editorField);
const model = new DatasetDescriptionFieldEditorModel().fromModel(editorField);
if(model.viewStyle.renderStyle === this.viewStyleEnum.CheckBox){
model.value = model.value?"true":"false";//patch
}
return model;
})
}