From ba2d98c4fbca678adb37905c476b03b815b0b0cf Mon Sep 17 00:00:00 2001 From: Raghav Aggarwal Date: Tue, 14 Nov 2023 13:14:17 +0530 Subject: [PATCH] [GH-313] Redirect user when a new meeting is started (#314) * [MI-3698] Converted the response of start meeting API to JSON for fetching the meeting URL. * [MI-3698] Review fix --------- Co-authored-by: Abhishek Verma <72438220+avas27JTG@users.noreply.github.com> --- webapp/src/client/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/client/client.js b/webapp/src/client/client.js index 487dc8d2..1a76564f 100644 --- a/webapp/src/client/client.js +++ b/webapp/src/client/client.js @@ -17,6 +17,7 @@ export default class Client { topic, root_id: rootId, }); + return res.meeting_url; } @@ -35,7 +36,7 @@ export const doPost = async (url, body, headers = {}) => { const response = await fetch(url, Client4.getOptions(options)); if (response.ok) { - return response; + return response.json(); } const text = await response.text();