smsmslib 1.0.19 → 1.0.21
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/package.json +1 -1
- package/system/usereducer.js +4 -5
package/package.json
CHANGED
package/system/usereducer.js
CHANGED
|
@@ -37,13 +37,11 @@ function sj_reducer_onAction_create(hf_type, f_dispatch, user)
|
|
|
37
37
|
const o_action =
|
|
38
38
|
{
|
|
39
39
|
type : s_type, /* By convention. */
|
|
40
|
-
f_type
|
|
40
|
+
f_type, o_event, user,
|
|
41
41
|
|
|
42
42
|
// pass the copy of o_event. Otherwise o_event.currentTarget will be null
|
|
43
43
|
// by the time sj_reducer() is called.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
user : user,
|
|
44
|
+
o_event_bak: {...o_event},
|
|
47
45
|
};
|
|
48
46
|
|
|
49
47
|
f_dispatch(o_action);
|
|
@@ -57,7 +55,8 @@ function sj_reducer_onAction_create(hf_type, f_dispatch, user)
|
|
|
57
55
|
|
|
58
56
|
function sj_reducer(value, o_action)
|
|
59
57
|
{
|
|
60
|
-
const o_next = o_action.f_type(value, o_action.o_event, o_action.
|
|
58
|
+
const o_next = o_action.f_type(value, o_action.o_event, o_action.o_event_bak,
|
|
59
|
+
o_action.user);
|
|
61
60
|
|
|
62
61
|
return o_next;
|
|
63
62
|
}
|