diff --git a/src/components/Ticket.tsx b/src/components/Ticket.tsx index ea2975e..eb8d666 100644 --- a/src/components/Ticket.tsx +++ b/src/components/Ticket.tsx @@ -28,7 +28,7 @@ interface Message { user_type: string; } -const API_URL = 'http://localhost:2058/host-api/v1/ticket/index.php'; +const API_URL = 'http://localhost:2058/host-api/app/v1/ticket/index.php'; function Ticketing() { const [tickets, setTickets] = useState([]); @@ -206,8 +206,8 @@ function Ticketing() { { - tableHeaders.map((thead) => ( - {thead} + tableHeaders.map((thead, index) => ( + {thead} )) } @@ -217,7 +217,7 @@ function Ticketing() { { tableData.map((data, index) => ( - + {data.id} {data.title} {data.description}