mirror of
https://github.com/plankanban/planka.git
synced 2026-07-15 21:48:11 +03:00
fix(socket): Handle transport error during reconnection after idle
This commit is contained in:
@@ -30,8 +30,8 @@ socket.connect = socket._connect; // eslint-disable-line no-underscore-dangle
|
||||
headers,
|
||||
url: `/api${url}`,
|
||||
},
|
||||
(_, { body, error }) => {
|
||||
if (error) {
|
||||
(body, { error }) => {
|
||||
if (body instanceof Error || error) {
|
||||
reject(body);
|
||||
} else {
|
||||
resolve(body);
|
||||
|
||||
Reference in New Issue
Block a user