@react-typed-forms/schemas 11.3.2 → 11.3.3
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/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -762,6 +762,9 @@ function mergeFields(fields, name, value, newFields) {
|
|
|
762
762
|
function addFieldOption(typeField, name, value) {
|
|
763
763
|
var _typeField$options;
|
|
764
764
|
var options = (_typeField$options = typeField.options) != null ? _typeField$options : [];
|
|
765
|
+
if (options.some(function (x) {
|
|
766
|
+
return x.value === value;
|
|
767
|
+
})) return typeField;
|
|
765
768
|
return _extends({}, typeField, {
|
|
766
769
|
options: [].concat(options, [{
|
|
767
770
|
name: name,
|