Continue integration frontend refactor

This commit is contained in:
Tuan Dang
2022-12-12 08:26:09 -05:00
parent 9e3ac6c31d
commit 397c15d61e
2 changed files with 16 additions and 19 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ const getBot = async ({ workspaceId }: Props) => {
}
).then(async (res) => {
if (res && res.status == 200) {
return await res.json();
return (await res.json()).bot;
} else {
console.log("Failed to get bot for project");
}