1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

comment form

This commit is contained in:
muerwre 2019-08-27 21:33:46 +07:00
parent 9531edcd19
commit 1990783fa3
9 changed files with 67 additions and 33 deletions

View file

@ -7,7 +7,7 @@ export type INodeState = Readonly<{
editor: INode;
current: INode;
comments: IComment[];
comment_data: IComment;
comment_data: Record<number, IComment>;
error: string;
errors: Record<string, string>;
@ -25,7 +25,7 @@ const INITIAL_STATE: INodeState = {
files: [],
},
current: { ...EMPTY_NODE },
comment_data: { ...EMPTY_COMMENT },
comment_data: { 0: { ...EMPTY_COMMENT } },
comments: [],
is_loading: false,