From 05e3be418d41d1f6e4bc350ee077fcfeb1ce07fb Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Wed, 6 Nov 2024 10:55:40 +0100 Subject: [PATCH] fix: the test connection button from actions in the providers table is working as expected now --- .../providers/table/data-table-row-actions.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/components/providers/table/data-table-row-actions.tsx b/components/providers/table/data-table-row-actions.tsx index 3e541751da..604863d7c2 100644 --- a/components/providers/table/data-table-row-actions.tsx +++ b/components/providers/table/data-table-row-actions.tsx @@ -7,7 +7,6 @@ import { DropdownMenu, DropdownSection, DropdownTrigger, - Link, } from "@nextui-org/react"; import { AddNoteBulkIcon, @@ -35,8 +34,9 @@ export function DataTableRowActions({ }: DataTableRowActionsProps) { const [isEditOpen, setIsEditOpen] = useState(false); const [isDeleteOpen, setIsDeleteOpen] = useState(false); + console.log("row.original:", row.original); const providerId = (row.original as { id: string }).id; - const providerType = (row.original as { type: string }).type; + const providerType = (row.original as any).attributes?.provider; const providerAlias = (row.original as any).attributes?.alias; return ( <> @@ -76,18 +76,13 @@ export function DataTableRowActions({ > } > - - - Test Connection - - + Test Connection