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:
parent
5659914f3f
commit
12ddd923ce
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,8 @@ import { NODE_HANDLERS } from "./handlers";
|
|||
export type INodeState = Readonly<{
|
||||
is_loading: boolean;
|
||||
editor: INode;
|
||||
error: string;
|
||||
errors: Record<string, string>;
|
||||
}>;
|
||||
|
||||
const INITIAL_STATE: INodeState = {
|
||||
|
@ -13,6 +15,8 @@ const INITIAL_STATE: INodeState = {
|
|||
...EMPTY_NODE,
|
||||
},
|
||||
is_loading: false,
|
||||
error: null,
|
||||
errors: {},
|
||||
};
|
||||
|
||||
export default createReducer(INITIAL_STATE, NODE_HANDLERS);
|
Loading…
Add table
Add a link
Reference in a new issue