Browse Source

fix: remove useless set

develop
Ezerous 4 years ago
parent
commit
87e0fa4362
  1. 3
      packages/concordia-app/src/components/PostList/PostListRow/index.jsx

3
packages/concordia-app/src/components/PostList/PostListRow/index.jsx

@ -123,9 +123,6 @@ const PostListRow = (props) => {
.put(postId.toString(), { .put(postId.toString(), {
[POST_CONTENT]: editedPostContent, [POST_CONTENT]: editedPostContent,
}) })
.then(() => {
setPostContent(editedPostContent);
})
.catch((reason) => { .catch((reason) => {
console.error(reason); console.error(reason);
}); });

Loading…
Cancel
Save