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,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(