@openmrs/ngx-formentry 3.1.1-pre.177 → 3.1.1-pre.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9433,7 +9433,7 @@
|
|
|
9433
9433
|
}
|
|
9434
9434
|
CheckboxControlComponent.prototype.ngOnInit = function () {
|
|
9435
9435
|
var _this = this;
|
|
9436
|
-
this.selected = [];
|
|
9436
|
+
this.selected = this.selected || [];
|
|
9437
9437
|
this.options = this.options.map(function (option) {
|
|
9438
9438
|
if (_this.selected.indexOf(option.value) !== -1) {
|
|
9439
9439
|
Object.assign(option, { checked: true });
|