diff --git a/src/components/Board/Board.container.js b/src/components/Board/Board.container.js index 63d3041f9..576fb2b27 100644 --- a/src/components/Board/Board.container.js +++ b/src/components/Board/Board.container.js @@ -216,6 +216,7 @@ export class BoardContainer extends Component { const { board, + boards, communicator, changeBoard, userData, @@ -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) {