Skip to content

Commit

Permalink
Improve error mananger
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivm committed Jul 25, 2024
1 parent db694a3 commit ddf4120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Board/Board.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ export class BoardContainer extends Component {
} catch (err) {
console.log(err.message);
showNotification(intl.formatMessage(messages.boardCopyError));
this.handleCloseDialog();
}
this.setState({
isSaving: false
Expand Down Expand Up @@ -1292,7 +1293,7 @@ export class BoardContainer extends Component {
const nextBoard = await API.getBoard(tile.loadBoard);
await this.createBoardsRecursively(nextBoard, records);
} catch (err) {
if (err.response.status === 404) {
if (!err.respose || err.response?.status === 404) {
//look for this board in available boards
const localBoard = boards.find(b => b.id === tile.loadBoard);
if (localBoard) {
Expand Down

0 comments on commit ddf4120

Please sign in to comment.