mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
added error display
This commit is contained in:
parent
b4d55a49ba
commit
7d09eb26f5
7 changed files with 45 additions and 4 deletions
|
@ -49,7 +49,16 @@ const setRelated = (state: INodeState, { related }: ReturnType<typeof nodeSetRel
|
|||
const setCommentData = (
|
||||
state: INodeState,
|
||||
{ id, comment }: ReturnType<typeof nodeSetCommentData>
|
||||
) => assocPath(['comment_data', id], comment, state);
|
||||
) => ({
|
||||
...state,
|
||||
comment_data: {
|
||||
...state.comment_data,
|
||||
[id]: {
|
||||
...(state.comment_data[id] || {}),
|
||||
...comment,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
const setTags = (state: INodeState, { tags }: ReturnType<typeof nodeSetTags>) =>
|
||||
assocPath(['current', 'tags'], tags, state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue