Skip to content

Commit

Permalink
fix issue with async state changing causing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alforoan committed Jul 3, 2024
1 parent f87140d commit c88346c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/UploadBoardComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { v4 as uuidv4 } from "uuid";

const UploadBoardComponent = () => {
const { selectedBoard, setIsToastSuccess } = useBoard();
const [boardName, setBoardName] = useState("");
const [boardName, setBoardName] = useState(selectedBoard!.name);
const { handleUploadNewTemplate } = useTemplates();

const handleClickUpload = () => {
Expand Down

0 comments on commit c88346c

Please sign in to comment.