Skip to content

Commit

Permalink
temp fix for issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Alforoan committed Sep 8, 2024
1 parent e96ebaf commit f774588
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions client/src/components/TitleComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ const TitleComponent = () => {
setIsTemplate(false);
setIsSearching(true);
} else {
const cards = await getCards(selectedBoard.uuid, false);
// const cards = await getCards(selectedBoard.uuid, false);

setSelectedBoard((prevBoard) => {
const updatedBoard = prevBoard
? { ...prevBoard }
: { ...selectedBoard };
// setSelectedBoard((prevBoard) => {
// const updatedBoard = prevBoard
// ? { ...prevBoard }
// : { ...selectedBoard };

return {
...updatedBoard,
cards: cards,
};
});
// return {
// ...updatedBoard,
// cards: cards,
// };
// });
navigate("/");
}
}
Expand Down

0 comments on commit f774588

Please sign in to comment.