1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-28 14:16:41 +07:00
This commit is contained in:
muerwre 2019-08-22 21:08:42 +07:00
parent a662256221
commit 148974ab7d
8 changed files with 56 additions and 9 deletions

View file

@ -1,3 +1,10 @@
export const NODE_HANDLERS = {
import assocPath from 'ramda/es/assocPath';
import { NODE_ACTIONS } from './constants';
import { nodeSetSaveErrors } from './actions';
import { INodeState } from './reducer';
const setSaveErrors = (state: INodeState, { errors }: ReturnType<typeof nodeSetSaveErrors>) => assocPath(['errors'], errors, state);
export const NODE_HANDLERS = {
[NODE_ACTIONS.SAVE]: setSaveErrors,
};