🐛 Deleting a post was not updating the global feed

Signed-off-by: Pau Costa <mico@micodev.es>
main
Pau Costa Ferrer 2024-02-12 13:38:05 +01:00
parent 71781a43c8
commit 96717643c5
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ export const deletePost =
dispatch(setStatus(Status.loading));
await postApi.deletePost(postId);
dispatch(fetchGlobalPosts());
dispatch(setStatus(Status.idle));
};