diff --git a/frontend/src/pages/TaskListPage.tsx b/frontend/src/pages/TaskListPage.tsx index 4eccf04..fc90c73 100644 --- a/frontend/src/pages/TaskListPage.tsx +++ b/frontend/src/pages/TaskListPage.tsx @@ -126,6 +126,10 @@ const TaskListPage: React.FC = () => { */ const handleCreateTask = async () => { try { + if (newToBuy.newAddition) { + newToBuy.stuff_id = null; + } + console.log(newToBuy) await toBuyApi.addToBuy(newToBuy); setOpenDialog(false); // ダイアログを閉じる setNewToBuy(EMPTY_TASK); // 入力内容をリセット