aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web/src/lib/chat.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/web/src/lib/chat.js b/src/web/src/lib/chat.js
index 088e2598..e0205f4c 100644
--- a/src/web/src/lib/chat.js
+++ b/src/web/src/lib/chat.js
@@ -1,14 +1,7 @@
import api from './api';
export const getAll = async () => {
- const response = (await api.get('/conversations')).data;
-
- if (!Array.isArray(response)) {
- console.warn('got non-array response from conversations API', response)
- return undefined;
- }
-
- return response;
+ return (await api.get('/conversations')).data;
};
export const acknowledge = ({ username }) => {