🐛 Deleting a post was not updating the global feed
Signed-off-by: Pau Costa <mico@micodev.es>main
parent
71781a43c8
commit
96717643c5
|
|
@ -144,6 +144,7 @@ export const deletePost =
|
|||
|
||||
dispatch(setStatus(Status.loading));
|
||||
await postApi.deletePost(postId);
|
||||
dispatch(fetchGlobalPosts());
|
||||
dispatch(setStatus(Status.idle));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue