From 96717643c5afc5a82a1faf46d3acff8903e14633 Mon Sep 17 00:00:00 2001 From: Pau Costa Date: Mon, 12 Feb 2024 13:38:05 +0100 Subject: [PATCH] :bug: Deleting a post was not updating the global feed Signed-off-by: Pau Costa --- client/src/app/postSlice.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/app/postSlice.ts b/client/src/app/postSlice.ts index 9ce1d6f..3a7f022 100644 --- a/client/src/app/postSlice.ts +++ b/client/src/app/postSlice.ts @@ -144,6 +144,7 @@ export const deletePost = dispatch(setStatus(Status.loading)); await postApi.deletePost(postId); + dispatch(fetchGlobalPosts()); dispatch(setStatus(Status.idle)); };