Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix / Paste subfolders #1692

Merged
merged 2 commits into from
May 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/Board/Board.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -1167,8 +1167,8 @@ export class BoardContainer extends Component {
)
.then(parentBoardId => {
if (createParentBoard) {
/* Here the parentBoardData is not updated with the values
that updatedApiObjects store on the API. Inside the boards are already updated
/* Here the parentBoardData is not updated with the values
that updatedApiObjects store on the API. Inside the boards are already updated
an the value is not replaced because the oldboard Id was replaced on the updateApiObjects inside createApiBoardSuccess */
replaceBoard(
{ ...parentBoardData },
Expand Down Expand Up @@ -1515,15 +1515,15 @@ export class BoardContainer extends Component {
}

//return condition
newBoard.tiles.forEach(async tile => {
for await (const tile of newBoard.tiles) {
if (tile && tile.loadBoard && !tile.linkedBoard) {
//look for this board in available boards
const newBoardToCopy = boards.find(b => b.id === tile.loadBoard);
if (newBoardToCopy) {
this.pasteBoardsRecursively(tile, newBoard.id);
await this.pasteBoardsRecursively(tile, newBoard.id);
}
}
});
}
return;
}

Expand Down
Loading