From 1c61a356a451c0b4334bd9ffcf70698b6b566628 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Fri, 29 Mar 2024 14:31:08 +0100 Subject: [PATCH] update when message sent --- frontend/src/rest/msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/rest/msg.js b/frontend/src/rest/msg.js index 4b17d43..f724f2a 100644 --- a/frontend/src/rest/msg.js +++ b/frontend/src/rest/msg.js @@ -36,7 +36,7 @@ export async function sendMessage(id, content, responseId){ content: content, response: responseId, } - restPost("/discussion/" + id, data); + restPost("/discussion/" + id, data).then(() => fetchDiscussion(id)); } export async function updateDiscussionName(id, name){