1
0
Fork 0
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:
Maksim Eltyshev 2023-12-09 17:19:40 +01:00
parent 28e4abaf76
commit a64a8c6f88

View file

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