Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Commit 9e7f708

Browse files
committed
Fixed board schema
1 parent 0504613 commit 9e7f708

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

server/routes/boardsRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ router.post(
2222
boardsController.createBoard,
2323
boardsController.assignNewBoard,
2424
(_req: Request, res: Response) => {
25-
return res.sendStatus(200);
25+
return res.sendStatus(200); //may need the board just created data to render into the main container
2626
}
2727
);
2828

src/components/CreateBoardModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ const CreateBoardModal = ({
3131
// receive username from backend
3232
// if request success, save username to state and route to dashboard
3333
if (response.status === 200) {
34+
const responseData = await response.json();
3435
setCreatingBoard(false);
35-
setCurrentBoard(response.name);
36+
setCurrentBoard(responseData.name);
3637
} else {
3738
console.log("Board creation failed");
3839
}

0 commit comments

Comments
 (0)