1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

edited reducer

This commit is contained in:
muerwre 2019-08-06 18:43:34 +07:00
parent 5659914f3f
commit 12ddd923ce

View file

@ -6,6 +6,8 @@ import { NODE_HANDLERS } from "./handlers";
export type INodeState = Readonly<{ export type INodeState = Readonly<{
is_loading: boolean; is_loading: boolean;
editor: INode; editor: INode;
error: string;
errors: Record<string, string>;
}>; }>;
const INITIAL_STATE: INodeState = { const INITIAL_STATE: INodeState = {
@ -13,6 +15,8 @@ const INITIAL_STATE: INodeState = {
...EMPTY_NODE, ...EMPTY_NODE,
}, },
is_loading: false, is_loading: false,
error: null,
errors: {},
}; };
export default createReducer(INITIAL_STATE, NODE_HANDLERS); export default createReducer(INITIAL_STATE, NODE_HANDLERS);