From b4ae465a4cc3909cc24a85b6233420bba3bfdd73 Mon Sep 17 00:00:00 2001 From: Daniel Marjenburgh Date: Wed, 20 Sep 2023 13:28:29 +0200 Subject: [PATCH] Remove some console.logs --- src/components/CreateServiceTicket.tsx | 1 - src/components/tables/Processes.tsx | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/CreateServiceTicket.tsx b/src/components/CreateServiceTicket.tsx index e5b57fa6..81d91184 100644 --- a/src/components/CreateServiceTicket.tsx +++ b/src/components/CreateServiceTicket.tsx @@ -124,7 +124,6 @@ function CreateServiceTicket() { useEffect(() => { //get labels from ticket objects for combobox - console.log("useEffect"); setJiraTicketsLabels(getLabels(jiraTickets)); setImsTicketsLabels(getLabels(imsTickets)); }, [selectedOptionsIMS, selectedOptionsJira, imsTickets, jiraTickets]); diff --git a/src/components/tables/Processes.tsx b/src/components/tables/Processes.tsx index 46a8377a..fc0dbb9c 100644 --- a/src/components/tables/Processes.tsx +++ b/src/components/tables/Processes.tsx @@ -102,7 +102,6 @@ export function ProcessesTable({ initialTableSettings, renderActions }: Processe const [filterQ, setFilterQ] = useQueryParam(queryNameSpace + "Filter", CommaSeparatedStringArrayParam); const { organisations, products, assignees, processStatuses } = useContext(ApplicationContext); - console.log("FILTERQ", filterQ); const initialize = useMemo( () => function (current: TableSettings): TableState { @@ -188,7 +187,7 @@ export function ProcessesTable({ initialTableSettings, renderActions }: Processe Filter: ({ toggleAllRowsExpanded }: FilterParams) => ( toggleAllRowsExpanded()} /> ), - Cell: ({ row, cell }: { row: Row; cell: Cell }) => { + Cell: ({ row }: { row: Row; cell: Cell }) => { const caret = row.values.pid === highlightQ ? : null; const button = row.isExpanded ? ( @@ -311,7 +310,7 @@ export function ProcessesTable({ initialTableSettings, renderActions }: Processe }, { Header: "", - accessor: (originalRow: ProcessV2, index: number) => originalRow, + accessor: (originalRow: ProcessV2) => originalRow, id: "actions", Cell: ({ cell }: { cell: Cell }) => ( ); }} - renderContent={(disabled) => renderActions(cell.value)} + renderContent={() => renderActions(cell.value)} /> ), disableFilters: true,