diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-10-02 16:16:19 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-10-02 16:16:19 -0500 |
| commit | d587c7fc8a8832ca1fbcc76cbd5396c9a24ef842 (patch) | |
| tree | 24291a3214c2eae17bb418611bc6e2d38ddb1c7b | |
| parent | 0f108c6071ae7f43c33479686245300576d16921 (diff) | |
| download | slskd-d587c7fc8a8832ca1fbcc76cbd5396c9a24ef842.tar.gz | |
remove faulty error handling
| -rw-r--r-- | src/web/src/lib/chat.js | 9 |
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 }) => { |
