Skip to content

Commit

Permalink
Revert "Get defaultBoardBlackList from active communicator"
Browse files Browse the repository at this point in the history
This reverts commit 43da260.
  • Loading branch information
RodriSanchez1 committed Jul 23, 2024
1 parent 489c510 commit 59ae755
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/Communicator/Communicator.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,12 @@ export function getApiMyCommunicators() {
} catch (e) {
console.error(e);
}
const getActiveCommunicator = getState => {
return getState().communicator.communicators.find(
c => c.id === getState().communicator.activeCommunicatorId
);
};
const activeCommunicator = getActiveCommunicator(getState);
const defaultBoardBlackList =
activeCommunicator?.defaultBoardBlackList ?? [];
const activeCommunicator =
res.data.find(
communicator =>
communicator.id === getState().communicator.activeCommunicator
) ?? res.data[res.data.length - 1];
const defaultBoardBlackList = activeCommunicator?.defaultBoardBlackList;
dispatch(
removeBoardsFromList(
defaultBoardBlackList,
Expand Down

0 comments on commit 59ae755

Please sign in to comment.