mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
General improvements to postlist and post
This commit is contained in:
@@ -100,7 +100,6 @@ const commentsReducer = (
|
||||
};
|
||||
|
||||
case COMMENT_SUBMIT_SUCCESS:
|
||||
console.log(action.comment);
|
||||
return {
|
||||
...state,
|
||||
items: [commentReducer(undefined, commentRequestSuccess(action.comment)), ...state.items],
|
||||
|
||||
@@ -14,6 +14,7 @@ const initialState: IPost = {
|
||||
description: null,
|
||||
boardId: 0,
|
||||
postStatusId: null,
|
||||
commentsCount: 0,
|
||||
userId: 0,
|
||||
createdAt: '',
|
||||
};
|
||||
@@ -30,6 +31,7 @@ const postReducer = (
|
||||
description: action.post.description,
|
||||
boardId: action.post.board_id,
|
||||
postStatusId: action.post.post_status_id,
|
||||
commentsCount: action.post.comments_count,
|
||||
userId: action.post.user_id,
|
||||
createdAt: action.post.created_at,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user