From 633ba473961c9cfd918446bd454048649864cc07 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Mon, 2 Mar 2020 11:16:21 +0100 Subject: [PATCH] NewTicketSubmit in progress --- client/src/components/NewTicketModal.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/components/NewTicketModal.tsx b/client/src/components/NewTicketModal.tsx index c130c4c..b2ecb62 100644 --- a/client/src/components/NewTicketModal.tsx +++ b/client/src/components/NewTicketModal.tsx @@ -32,13 +32,12 @@ export const NewTicketModal: FC = ({ show, handleClose, allUsers }) => { e: FormEvent ) => { e.preventDefault(); - let newTicket: Ticket = { + let newTicket = { title: title, description: description, endingDate: endingDate, - id: 0, - status: "", - project: {} as Project + creatorId: "20bf4b2a-7209-4826-96cd-29c2bc937a94", + projectId: 1 }; console.log(newTicket); const response: HttpResponse = await post(