From 32a757a2479fa7d7cf7c08c9d4fab433352a2b2a Mon Sep 17 00:00:00 2001 From: Tam Nguyen Date: Mon, 13 Jan 2025 16:44:34 +1100 Subject: [PATCH] fix: query for ssh keys to show servers, rather than default empty --- .../components/dashboard/settings/servers/show-servers.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx b/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx index cf616f5e..f3b0526b 100644 --- a/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx +++ b/apps/dokploy/components/dashboard/settings/servers/show-servers.tsx @@ -48,9 +48,7 @@ export const ShowServers = () => { const query = router.query; const { data, refetch, isLoading } = api.server.all.useQuery(); const { mutateAsync } = api.server.remove.useMutation(); - const { data: sshKeys } = { - data: [], - }; + const { data: sshKeys } = api.sshKey.all.useQuery(); const { data: isCloud } = api.settings.isCloud.useQuery(); const { data: canCreateMoreServers } = api.stripe.canCreateMoreServers.useQuery();