@synerise/ds-condition 0.17.2 → 0.17.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.17.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.17.2...@synerise/ds-condition@0.17.3) (2022-05-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **condition:** fixes testPrev value for empty conditions array ([35a266a](https://github.com/Synerise/synerise-design/commit/35a266a44ea97556fa0d57090dd16d7f0af1da2e))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.17.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.17.1...@synerise/ds-condition@0.17.2) (2022-05-30)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-condition
package/dist/Condition.js CHANGED
@@ -221,9 +221,9 @@ var Condition = function Condition(props) {
221
221
  }, []);
222
222
  var testPrevValueElement = React.useCallback(function () {
223
223
  return steps == null ? void 0 : steps.map(function (step) {
224
- var _returnLast;
224
+ var _returnLast, _returnLast2;
225
225
 
226
- return !((_returnLast = returnLast(step.conditions)) != null && _returnLast.factor.value) && setErrorId(returnLast(step.conditions).id);
226
+ return !((_returnLast = returnLast(step.conditions)) != null && _returnLast.factor.value) && setErrorId((_returnLast2 = returnLast(step.conditions)) == null ? void 0 : _returnLast2.id);
227
227
  });
228
228
  }, [steps, returnLast]);
229
229
  var handleAddCondition = React.useMemo(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-condition",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Condition UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -36,7 +36,7 @@
36
36
  "@synerise/ds-context-selector": "^0.12.1",
37
37
  "@synerise/ds-core": "^0.34.0",
38
38
  "@synerise/ds-cruds": "^0.3.9",
39
- "@synerise/ds-factors": "^0.14.1",
39
+ "@synerise/ds-factors": "^0.14.2",
40
40
  "@synerise/ds-icon": "^0.49.0",
41
41
  "@synerise/ds-inline-edit": "^0.6.12",
42
42
  "@synerise/ds-operators": "^0.9.0",
@@ -49,5 +49,5 @@
49
49
  "@synerise/ds-core": "*",
50
50
  "react": ">=16.9.0 < 17.0.0"
51
51
  },
52
- "gitHead": "af0851f21909db427794060c4550a60ddd3f4bbd"
52
+ "gitHead": "99aebc2358ae0c570c4d5bcf4280ac37f811be22"
53
53
  }