1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 15:49:46 +02:00

fix: Attempt to fix error that occurs during reconnection

This commit is contained in:
Maksim Eltyshev 2023-12-09 17:19:40 +01:00
parent ca6fb3b962
commit fee6841d0a

View file

@ -14,24 +14,45 @@ export function* handleSocketReconnect() {
yield put(actions.handleSocketReconnect.fetchCore(currentUserId, boardId));
const {
user,
board,
users,
projects,
projectManagers,
boards,
boardMemberships,
labels,
lists,
cards,
cardMemberships,
cardLabels,
tasks,
attachments,
activities,
notifications,
} = yield call(requests.fetchCore); // TODO: handle error
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,
board,
users,
projects,
projectManagers,
boards,
boardMemberships,
labels,
lists,
cards,
cardMemberships,
cardLabels,
tasks,
attachments,
activities,
notifications,
} = yield call(requests.fetchCore));
} catch (error) {
return;
}
yield put(
actions.handleSocketReconnect(