mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
fix: Attempt to fix error that occurs during reconnection
This commit is contained in:
parent
28e4abaf76
commit
a64a8c6f88
1 changed files with 39 additions and 18 deletions
|
@ -14,7 +14,25 @@ export function* handleSocketReconnect() {
|
||||||
|
|
||||||
yield put(actions.handleSocketReconnect.fetchCore(currentUserId, boardId));
|
yield put(actions.handleSocketReconnect.fetchCore(currentUserId, boardId));
|
||||||
|
|
||||||
const {
|
let user;
|
||||||
|
let board;
|
||||||
|
let users;
|
||||||
|
let projects;
|
||||||
|
let projectManagers;
|
||||||
|
let boards;
|
||||||
|
let boardMemberships;
|
||||||
|
let labels;
|
||||||
|
let lists;
|
||||||
|
let cards;
|
||||||
|
let cardMemberships;
|
||||||
|
let cardLabels;
|
||||||
|
let tasks;
|
||||||
|
let attachments;
|
||||||
|
let activities;
|
||||||
|
let notifications;
|
||||||
|
|
||||||
|
try {
|
||||||
|
({
|
||||||
user,
|
user,
|
||||||
board,
|
board,
|
||||||
users,
|
users,
|
||||||
|
@ -31,7 +49,10 @@ export function* handleSocketReconnect() {
|
||||||
attachments,
|
attachments,
|
||||||
activities,
|
activities,
|
||||||
notifications,
|
notifications,
|
||||||
} = yield call(requests.fetchCore); // TODO: handle error
|
} = yield call(requests.fetchCore));
|
||||||
|
} catch (error) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
yield put(
|
yield put(
|
||||||
actions.handleSocketReconnect(
|
actions.handleSocketReconnect(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue