feat: add task_category field to tasks with validation and update related forms
This commit is contained in:
@@ -16,7 +16,7 @@ export default function NewTaskSetPage() {
|
||||
const [formData, setFormData] = useState({
|
||||
name: "",
|
||||
description: "",
|
||||
project_type: "design",
|
||||
task_category: "design",
|
||||
selectedTemplates: []
|
||||
});
|
||||
const [isSubmitting, setIsSubmitting] = useState(false);
|
||||
@@ -61,7 +61,7 @@ export default function NewTaskSetPage() {
|
||||
body: JSON.stringify({
|
||||
name: formData.name.trim(),
|
||||
description: formData.description.trim(),
|
||||
project_type: formData.project_type
|
||||
task_category: formData.task_category
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user