@coorpacademy/app-review 0.3.2 → 0.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.
|
@@ -7,12 +7,12 @@ state = initialState, action) => {
|
|
|
7
7
|
switch (action.type) {
|
|
8
8
|
case CORRECTION_FETCH_REQUEST: {
|
|
9
9
|
const { meta } = action;
|
|
10
|
-
return set(meta.slideRef, null, state);
|
|
10
|
+
return set([meta.slideRef], null, state);
|
|
11
11
|
}
|
|
12
12
|
case CORRECTION_FETCH_SUCCESS: {
|
|
13
13
|
const { meta } = action;
|
|
14
14
|
const correction = action.payload;
|
|
15
|
-
return set(meta.slideRef, correction, state);
|
|
15
|
+
return set([meta.slideRef], correction, state);
|
|
16
16
|
}
|
|
17
17
|
default:
|
|
18
18
|
return state;
|
|
@@ -6,7 +6,7 @@ const reducer = (
|
|
|
6
6
|
// eslint-disable-next-line default-param-last
|
|
7
7
|
state = initialState, action) => {
|
|
8
8
|
return includes(action.type, ANSWER_EDIT_ACTIONS)
|
|
9
|
-
? set(action.meta.slideRef, action.payload, initialState)
|
|
9
|
+
? set([action.meta.slideRef], action.payload, initialState)
|
|
10
10
|
: state;
|
|
11
11
|
};
|
|
12
12
|
export default reducer;
|
|
@@ -8,12 +8,12 @@ state, action) {
|
|
|
8
8
|
switch (action.type) {
|
|
9
9
|
case CORRECTION_FETCH_REQUEST: {
|
|
10
10
|
var meta = action.meta;
|
|
11
|
-
return set(meta.slideRef, null, state);
|
|
11
|
+
return set([meta.slideRef], null, state);
|
|
12
12
|
}
|
|
13
13
|
case CORRECTION_FETCH_SUCCESS: {
|
|
14
14
|
var meta = action.meta;
|
|
15
15
|
var correction = action.payload;
|
|
16
|
-
return set(meta.slideRef, correction, state);
|
|
16
|
+
return set([meta.slideRef], correction, state);
|
|
17
17
|
}
|
|
18
18
|
default:
|
|
19
19
|
return state;
|
|
@@ -7,7 +7,7 @@ var reducer = function (
|
|
|
7
7
|
state, action) {
|
|
8
8
|
if (state === void 0) { state = initialState; }
|
|
9
9
|
return includes(action.type, ANSWER_EDIT_ACTIONS)
|
|
10
|
-
? set(action.meta.slideRef, action.payload, initialState)
|
|
10
|
+
? set([action.meta.slideRef], action.payload, initialState)
|
|
11
11
|
: state;
|
|
12
12
|
};
|
|
13
13
|
export default reducer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/app-review",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.15.0"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@coorpacademy/redux-task": "^1.1.5",
|
|
46
46
|
"cross-fetch": "^3.1.5",
|
|
47
47
|
"jwt-decode": "^3.1.2",
|
|
48
|
-
"react-redux": "
|
|
48
|
+
"react-redux": "7.2.8",
|
|
49
49
|
"redux": "^4.2.0",
|
|
50
50
|
"redux-thunk": "^2.4.1"
|
|
51
51
|
},
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"ts-node": "^10.9.1",
|
|
79
79
|
"typescript": "^4.7.4"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "0644eb3879ad1e675f9360e0b55d65ba04b83451"
|
|
82
82
|
}
|
|
@@ -21,12 +21,12 @@ const reducer = (
|
|
|
21
21
|
switch (action.type) {
|
|
22
22
|
case CORRECTION_FETCH_REQUEST: {
|
|
23
23
|
const {meta} = action;
|
|
24
|
-
return set(meta.slideRef, null, state);
|
|
24
|
+
return set([meta.slideRef], null, state);
|
|
25
25
|
}
|
|
26
26
|
case CORRECTION_FETCH_SUCCESS: {
|
|
27
27
|
const {meta} = action;
|
|
28
28
|
const correction = action.payload;
|
|
29
|
-
return set(meta.slideRef, correction, state);
|
|
29
|
+
return set([meta.slideRef], correction, state);
|
|
30
30
|
}
|
|
31
31
|
default:
|
|
32
32
|
return state;
|
|
@@ -14,7 +14,7 @@ const reducer = (
|
|
|
14
14
|
action: EditAnswerAction
|
|
15
15
|
): UIAnswerState => {
|
|
16
16
|
return includes(action.type, ANSWER_EDIT_ACTIONS)
|
|
17
|
-
? set(action.meta.slideRef, action.payload, initialState)
|
|
17
|
+
? set([action.meta.slideRef], action.payload, initialState)
|
|
18
18
|
: state;
|
|
19
19
|
};
|
|
20
20
|
|