NewTicketSubmit in progress

This commit is contained in:
Ruidy Nemausat 2020-03-02 11:16:21 +01:00
parent 299aa37bb1
commit 633ba47396

View file

@ -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>(