diff options
author | 2019-04-12 16:15:11 +0200 | |
---|---|---|
committer | 2019-04-12 16:15:11 +0200 | |
commit | 48a0a1e963c27d633f6b0dd736e27ac2215586c5 (patch) | |
tree | f12d78e95efb610ab06d65325e06ebf52577e3fa /src/actions/lib | |
parent | add i18n files (diff) | |
download | ferdium-app-48a0a1e963c27d633f6b0dd736e27ac2215586c5.tar.gz ferdium-app-48a0a1e963c27d633f6b0dd736e27ac2215586c5.tar.zst ferdium-app-48a0a1e963c27d633f6b0dd736e27ac2215586c5.zip |
fixes last issues with announcement logic
Diffstat (limited to 'src/actions/lib')
-rw-r--r-- | src/actions/lib/actions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actions/lib/actions.js b/src/actions/lib/actions.js index 2bc7d2711..b38db9946 100644 --- a/src/actions/lib/actions.js +++ b/src/actions/lib/actions.js | |||
@@ -1,7 +1,7 @@ | |||
1 | export const createActionsFromDefinitions = (actionDefinitions, validate) => { | 1 | export const createActionsFromDefinitions = (actionDefinitions, validate) => { |
2 | const actions = {}; | 2 | const actions = {}; |
3 | Object.keys(actionDefinitions).forEach((actionName) => { | 3 | Object.keys(actionDefinitions).forEach((actionName) => { |
4 | const action = (params) => { | 4 | const action = (params = {}) => { |
5 | const schema = actionDefinitions[actionName]; | 5 | const schema = actionDefinitions[actionName]; |
6 | validate(schema, params, actionName); | 6 | validate(schema, params, actionName); |
7 | action.notify(params); | 7 | action.notify(params); |