Skip to content

Commit

Permalink
fix: Attempt to fix error that occurs during reconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
meltyshev committed Dec 9, 2023
1 parent ca6fb3b commit fee6841
Showing 1 changed file with 39 additions and 18 deletions.
57 changes: 39 additions & 18 deletions client/src/sagas/core/services/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fee6841

Please sign in to comment.