tuain-ng-forms-lib 14.5.26 → 14.5.27
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.
|
@@ -2257,7 +2257,7 @@ class FormStructureAndData {
|
|
|
2257
2257
|
setFieldErrorMessage(code, message) { this.getField(code)?.setErrorMessage(message); }
|
|
2258
2258
|
setFieldOptions(code, optionsArray, idAttribute, nameAttribute) {
|
|
2259
2259
|
const field = this.getField(code);
|
|
2260
|
-
if (field && optionsArray
|
|
2260
|
+
if (field && optionsArray) {
|
|
2261
2261
|
const fieldOptions = optionsArray.map(item => ({
|
|
2262
2262
|
fieldOptionId: item[idAttribute],
|
|
2263
2263
|
fieldOptionValue: item[nameAttribute]
|