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){