Reverte opcionalidade de subcategoria no portal

This commit is contained in:
Esdras Renan 2025-10-13 18:08:34 -03:00
parent 6a04ef4843
commit 9f85cbaba5
3 changed files with 7 additions and 31 deletions

View file

@ -112,7 +112,7 @@ export function NewTicketDialog() {
}
}
const handleSubcategoryChange = (value: string | null) => {
const handleSubcategoryChange = (value: string) => {
const previous = form.getValues("subcategoryId") ?? ""
const next = value ?? ""
form.setValue("subcategoryId", next, {