fix(portal): garantir criação do ticket antes de anexos
This commit is contained in:
parent
112cf52f81
commit
0adf8801fc
1 changed files with 1 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ import { Input } from "@/components/ui/input"
|
|||
import { Button } from "@/components/ui/button"
|
||||
import { CategorySelectFields } from "@/components/tickets/category-select"
|
||||
import { Dropzone } from "@/components/ui/dropzone"
|
||||
import { RichTextEditor, sanitizeEditorHtml } from "@/components/ui/rich-text-editor"
|
||||
import { RichTextEditor } from "@/components/ui/rich-text-editor"
|
||||
|
||||
const DEFAULT_PRIORITY: TicketPriority = "MEDIUM"
|
||||
|
||||
|
|
@ -98,7 +98,6 @@ export function PortalTicketForm() {
|
|||
|
||||
toast.success("Chamado criado com sucesso!", { id: "portal-new-ticket" })
|
||||
setAttachments([])
|
||||
setAttachments([])
|
||||
router.replace(`/portal/tickets/${id}`)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue