fix: remove RunbookExecution data wrapper type in runbook detail page
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bf68ceccbc
commit
7cb185e0cd
|
|
@ -263,16 +263,16 @@ export default function RunbookDetailPage() {
|
|||
enabled: !!id,
|
||||
});
|
||||
|
||||
const { data: executionsData } = useQuery<{ data: RunbookExecution[] }>({
|
||||
const { data: executionsData } = useQuery<RunbookExecution[]>({
|
||||
queryKey: [...queryKeys.runbooks.detail(id), 'executions'],
|
||||
queryFn: () =>
|
||||
apiClient<{ data: RunbookExecution[] }>(
|
||||
apiClient<RunbookExecution[]>(
|
||||
`/api/v1/ops/runbooks/${id}/executions`,
|
||||
),
|
||||
enabled: !!id,
|
||||
});
|
||||
|
||||
const executions = executionsData?? [];
|
||||
const executions = executionsData ?? [];
|
||||
|
||||
// Mutations --------------------------------------------------------------
|
||||
const updateMutation = useMutation({
|
||||
|
|
|
|||
Loading…
Reference in New Issue