@legalplace/wizardx-core 2.11.1 → 2.11.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,28 @@
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
+ ## [2.11.3](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.2...@legalplace/wizardx-core@2.11.3) (2022-06-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * prevent mulitple save data call which cause SQL error ([fdd7036](https://git.legalplace.eu/legalplace/monorepo/commits/fdd703609aa6a1da59cbad66feca15e00af2c9b3)), closes [api#5676](https://git.legalplace.eu/legalplace/monorepo/issues/5676)
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.11.2](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.1...@legalplace/wizardx-core@2.11.2) (2022-05-10)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * fix bug with email app state removal. api[#5434](https://git.legalplace.eu/legalplace/monorepo/issues/5434) ([1a7624d](https://git.legalplace.eu/legalplace/monorepo/commits/1a7624dd49a18616f801e996433eab622b0cb3f2))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [2.11.1](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.0...@legalplace/wizardx-core@2.11.1) (2022-04-25)
7
29
 
8
30
 
@@ -1,4 +1,4 @@
1
- import { call, put, takeLatest } from "redux-saga/effects";
1
+ import { call, put, takeLeading } from "redux-saga/effects";
2
2
  import { setDataStatus } from "../actions/app";
3
3
  import { selectPermalink, selectInstanceUniqid } from "../selectors/app";
4
4
  import { SAVE_DATA } from "../constants/sagas/data";
@@ -31,6 +31,6 @@ function* saveDataDecorator(action) {
31
31
  }
32
32
  }
33
33
  function* saveDataSaga() {
34
- yield takeLatest(SAVE_DATA, saveDataDecorator);
34
+ yield takeLeading(SAVE_DATA, saveDataDecorator);
35
35
  }
36
36
  export default saveDataSaga;
@@ -97,8 +97,11 @@ function* setUserEmailDecorator(action) {
97
97
  }, 1000);
98
98
  }
99
99
  const availableAppStates = [...selectAvailableAppStates()];
100
- availableAppStates.splice(availableAppStates.indexOf("email"), 1);
101
- yield put(updateAvailableAppStatesAction(availableAppStates));
100
+ const emailAppStateIndex = availableAppStates.indexOf("email");
101
+ if (emailAppStateIndex > -1) {
102
+ availableAppStates.splice(emailAppStateIndex, 1);
103
+ yield put(updateAvailableAppStatesAction(availableAppStates));
104
+ }
102
105
  if (!inBackground)
103
106
  yield put(goNextPageAction());
104
107
  yield put(setUserEmailSucceeded());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "2.11.1",
3
+ "version": "2.11.3",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -92,5 +92,5 @@
92
92
  "*.test.ts",
93
93
  "*.test.tsx"
94
94
  ],
95
- "gitHead": "d6df18c136bf7dcd8ce2ffa7d347050afd0ec3ee"
95
+ "gitHead": "c0f5622fc3d249a46b6f494884234c3b4c93b163"
96
96
  }