mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-12 11:46:40 +00:00
NewTicketSubmit in progress
This commit is contained in:
parent
299aa37bb1
commit
633ba47396
1 changed files with 3 additions and 4 deletions
|
|
@ -32,13 +32,12 @@ export const NewTicketModal: FC<IProps> = ({ show, handleClose, allUsers }) => {
|
||||||
e: FormEvent
|
e: FormEvent
|
||||||
) => {
|
) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let newTicket: Ticket = {
|
let newTicket = {
|
||||||
title: title,
|
title: title,
|
||||||
description: description,
|
description: description,
|
||||||
endingDate: endingDate,
|
endingDate: endingDate,
|
||||||
id: 0,
|
creatorId: "20bf4b2a-7209-4826-96cd-29c2bc937a94",
|
||||||
status: "",
|
projectId: 1
|
||||||
project: {} as Project
|
|
||||||
};
|
};
|
||||||
console.log(newTicket);
|
console.log(newTicket);
|
||||||
const response: HttpResponse<Ticket> = await post<Ticket>(
|
const response: HttpResponse<Ticket> = await post<Ticket>(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue