From 7cb185e0cdc031302f271ca0e7eef4fc289def25 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 2 Mar 2026 18:50:38 -0800 Subject: [PATCH] fix: remove RunbookExecution data wrapper type in runbook detail page Co-Authored-By: Claude Opus 4.6 --- it0-web-admin/src/app/(admin)/runbooks/[id]/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/it0-web-admin/src/app/(admin)/runbooks/[id]/page.tsx b/it0-web-admin/src/app/(admin)/runbooks/[id]/page.tsx index 170aebe..3ecdd12 100644 --- a/it0-web-admin/src/app/(admin)/runbooks/[id]/page.tsx +++ b/it0-web-admin/src/app/(admin)/runbooks/[id]/page.tsx @@ -263,16 +263,16 @@ export default function RunbookDetailPage() { enabled: !!id, }); - const { data: executionsData } = useQuery<{ data: RunbookExecution[] }>({ + const { data: executionsData } = useQuery({ queryKey: [...queryKeys.runbooks.detail(id), 'executions'], queryFn: () => - apiClient<{ data: RunbookExecution[] }>( + apiClient( `/api/v1/ops/runbooks/${id}/executions`, ), enabled: !!id, }); - const executions = executionsData?? []; + const executions = executionsData ?? []; // Mutations -------------------------------------------------------------- const updateMutation = useMutation({