iguazio.dashboard-react-controls 2.2.22 → 2.2.23

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.
@@ -81,8 +81,14 @@ const FormChipCellView = /*#__PURE__*/_react.default.forwardRef((_ref, _ref2) =>
81
81
  fields,
82
82
  meta
83
83
  } = _ref3;
84
+ let newValidationRules = {
85
+ ...validationRules
86
+ };
84
87
  if (!(0, _lodash.isEmpty)(validationRules) && validationRules.key.every(rule => rule.name !== _formChipCell.uniquenessError.name)) {
85
- validationRules.key.push(_formChipCell.uniquenessError);
88
+ newValidationRules = {
89
+ ...validationRules,
90
+ key: [...validationRules.key, _formChipCell.uniquenessError]
91
+ };
86
92
  }
87
93
  return (isEditable || !(0, _common.isEveryObjectValueEmpty)(fields)) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
88
94
  className: "chips-cell",
@@ -127,7 +133,7 @@ const FormChipCellView = /*#__PURE__*/_react.default.forwardRef((_ref, _ref2) =>
127
133
  ref: chipsCellRef,
128
134
  setChipsSizes: setChipsSizes,
129
135
  setEditConfig: setEditConfig,
130
- validationRules: validationRules,
136
+ validationRules: newValidationRules,
131
137
  valueName: `${contentItem}.value`
132
138
  })
133
139
  }, chipData.id)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "2.2.22",
3
+ "version": "2.2.23",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",