Skip to content

Commit

Permalink
[GH-313] Redirect user when a new meeting is started (#314)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>
  • Loading branch information
raghavaggarwal2308 and avas27JTG authored Nov 14, 2023
1 parent dbbb587 commit ba2d98c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default class Client {
topic,
root_id: rootId,
});

return res.meeting_url;
}

Expand All @@ -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();
Expand Down

0 comments on commit ba2d98c

Please sign in to comment.