Skip to content

Commit

Permalink
Merge pull request #1456 from RodriSanchez1/fix/InconsistenciesBoardN…
Browse files Browse the repository at this point in the history
…avigation

Fix/Board navigation inconsistencies
  • Loading branch information
RodriSanchez1 authored May 17, 2024
2 parents 8ca13d6 + 290eefc commit ab39070
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Board/Board.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export class BoardContainer extends Component {

const {
board,
boards,
communicator,
changeBoard,
userData,
Expand All @@ -230,11 +231,9 @@ export class BoardContainer extends Component {
window.gtag('set', { user_id: userData.id });
//synchronize communicator and boards with API
this.setState({ isGettingApiObjects: true });
await getApiObjects();
this.setState({ isGettingApiObjects: false });
getApiObjects().then(() => this.setState({ isGettingApiObjects: false }));
}

const boards = this.props.boards; //see board from redux state after get ApiObjets
let boardExists = null;

if (id && board && id === board.id) {
Expand Down

0 comments on commit ab39070

Please sign in to comment.