Skip to content

Commit

Permalink
FIX post refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
dolf321 committed Aug 23, 2023
1 parent 0ac7ae4 commit b947235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/pages/core/public/Forum/Forum.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function Forum() {
const handleEditPost = React.useCallback((post) => {
axios.patch(`/api/public/forum/post/${selectedPost.id}`, {...post})
.then(() => {
refreshPosts();
refreshSelectedPost(false);
setIsDialogOpen(false);
})
.catch(standardErrorHandler(enqueueSnackbar));
Expand Down

0 comments on commit b947235

Please sign in to comment.