Dataset Profile Editor. CheckBox default value preview patch.
This commit is contained in:
parent
b04e2b3482
commit
dc39cf9fdd
|
@ -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;
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue