tin-spa 2.8.2 → 2.8.4
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.
package/fesm2020/tin-spa.mjs
CHANGED
|
@@ -4437,7 +4437,7 @@ class FormComponent {
|
|
|
4437
4437
|
console.log("Picked option is ", field.options.find(x => x[field.optionValue] == value));
|
|
4438
4438
|
console.log("Set value is ", field.options.find(x => x[field.optionValue] == value)[childConfig.childValueField]);
|
|
4439
4439
|
// this.data[child.name] = field.options.find(x => x[field.optionValue] == value)[childConfig.childValueField]
|
|
4440
|
-
this.data[child.name] = field.options.find(x => x[field.optionValue] == value)[childConfig.childValueField];
|
|
4440
|
+
this.data[child.name] = field.options.find(x => x[field.optionValue ?? 'value'] == value)[childConfig.childValueField];
|
|
4441
4441
|
});
|
|
4442
4442
|
}
|
|
4443
4443
|
}
|