carbon-addons-iot-react 5.8.2 → 5.8.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.
@@ -11,7 +11,6 @@ import 'core-js/modules/es.array.find-index.js';
11
11
  import 'core-js/modules/es.array.includes.js';
12
12
  import 'core-js/modules/es.array.map.js';
13
13
  import 'core-js/modules/es.function.name.js';
14
- import 'core-js/modules/es.number.constructor.js';
15
14
  import 'core-js/modules/es.object.get-own-property-descriptor.js';
16
15
  import 'core-js/modules/es.object.get-own-property-descriptors.js';
17
16
  import 'core-js/modules/es.object.keys.js';
@@ -292,11 +291,11 @@ var ThresholdsFormItem = function ThresholdsFormItem(_ref) {
292
291
  invalid: false // don't allow invalid state
293
292
  ,
294
293
  value: ((_threshold$value2 = threshold.value) === null || _threshold$value2 === void 0 ? void 0 : _threshold$value2.toString()) || 0,
295
- onChange: function onChange(event, _ref7) {
294
+ onChange: function onChange(_ref7) {
296
295
  var value = _ref7.value;
297
296
  var updatedThresholds = _toConsumableArray(thresholds);
298
297
  updatedThresholds[i] = _objectSpread(_objectSpread({}, updatedThresholds[i]), {}, {
299
- value: Number(value !== null && value !== void 0 ? value : event.imaginaryTarget.value) || value || event.imaginaryTarget.value
298
+ value: value
300
299
  });
301
300
  _onChange(updatedThresholds.map(function (item) {
302
301
  return _omit(item, 'id');
@@ -13,7 +13,6 @@ require('core-js/modules/es.array.find-index.js');
13
13
  require('core-js/modules/es.array.includes.js');
14
14
  require('core-js/modules/es.array.map.js');
15
15
  require('core-js/modules/es.function.name.js');
16
- require('core-js/modules/es.number.constructor.js');
17
16
  require('core-js/modules/es.object.get-own-property-descriptor.js');
18
17
  require('core-js/modules/es.object.get-own-property-descriptors.js');
19
18
  require('core-js/modules/es.object.keys.js');
@@ -302,11 +301,11 @@ var ThresholdsFormItem = function ThresholdsFormItem(_ref) {
302
301
  invalid: false // don't allow invalid state
303
302
  ,
304
303
  value: ((_threshold$value2 = threshold.value) === null || _threshold$value2 === void 0 ? void 0 : _threshold$value2.toString()) || 0,
305
- onChange: function onChange(event, _ref7) {
304
+ onChange: function onChange(_ref7) {
306
305
  var value = _ref7.value;
307
306
  var updatedThresholds = _toConsumableArray__default.default(thresholds);
308
307
  updatedThresholds[i] = _objectSpread(_objectSpread({}, updatedThresholds[i]), {}, {
309
- value: Number(value !== null && value !== void 0 ? value : event.imaginaryTarget.value) || value || event.imaginaryTarget.value
308
+ value: value
310
309
  });
311
310
  _onChange(updatedThresholds.map(function (item) {
312
311
  return omit(item, 'id');
package/package.json CHANGED
@@ -353,7 +353,7 @@
353
353
  "whatwg-fetch": "^3.0.0"
354
354
  },
355
355
  "sideEffects": false,
356
- "version": "5.8.2",
356
+ "version": "5.8.3",
357
357
  "resolutions": {
358
358
  "chokidar": "3.3.1",
359
359
  "react-grid-layout": "1.2.2",
@@ -311204,11 +311204,11 @@ ${formatRule(Codicon.menuSubmenu)}
311204
311204
  invalid: false // don't allow invalid state
311205
311205
  ,
311206
311206
  value: ((_threshold$value2 = threshold.value) === null || _threshold$value2 === void 0 ? void 0 : _threshold$value2.toString()) || 0,
311207
- onChange: function onChange(event, _ref7) {
311207
+ onChange: function onChange(_ref7) {
311208
311208
  var value = _ref7.value;
311209
311209
  var updatedThresholds = _toConsumableArray$2(thresholds);
311210
311210
  updatedThresholds[i] = _objectSpread$H(_objectSpread$H({}, updatedThresholds[i]), {}, {
311211
- value: Number(value !== null && value !== void 0 ? value : event.imaginaryTarget.value) || value || event.imaginaryTarget.value
311211
+ value: value
311212
311212
  });
311213
311213
  _onChange(updatedThresholds.map(function (item) {
311214
311214
  return _omit(item, 'id');