Skip to content

Commit

Permalink
FIX mistake in callback dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dolf321 committed Aug 28, 2023
1 parent 6367cd1 commit 7464493
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 @@ -155,7 +155,7 @@ export default function Forum() {
refreshSelectedPost();
})
.catch(standardErrorHandler(enqueueSnackbar));
}, []);
}, [selectedPost]);

const handleEditComment = React.useCallback((id, comment) => {
axios.patch(`/api/public/forum/post/comment/${id}`, {
Expand Down

0 comments on commit 7464493

Please sign in to comment.