+
{data?.length ? (
@@ -84,7 +101,7 @@ export default function TableWrapper() {
@@ -98,7 +115,7 @@ export default function TableWrapper() {
data={filtered ?? data ?? []}
isFiltered={!!search}
isFetching={isFetching}
- onEdit={(id: number) => showProxyHostModal(id)}
+ onEdit={(id: number) => showProxyHostModal(id, agentId)}
onDelete={(id: number) => {
const host = data?.find((h) => h.id === id);
showDeleteConfirmModal({
@@ -121,7 +138,7 @@ export default function TableWrapper() {
});
}}
onDisableToggle={handleDisableToggle}
- onNew={() => showProxyHostModal("new")}
+ onNew={() => showProxyHostModal("new", agentId)}
/>