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,
|
enabled: !!id,
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: executionsData } = useQuery<{ data: RunbookExecution[] }>({
|
const { data: executionsData } = useQuery<RunbookExecution[]>({
|
||||||
queryKey: [...queryKeys.runbooks.detail(id), 'executions'],
|
queryKey: [...queryKeys.runbooks.detail(id), 'executions'],
|
||||||
queryFn: () =>
|
queryFn: () =>
|
||||||
apiClient<{ data: RunbookExecution[] }>(
|
apiClient<RunbookExecution[]>(
|
||||||
`/api/v1/ops/runbooks/${id}/executions`,
|
`/api/v1/ops/runbooks/${id}/executions`,
|
||||||
),
|
),
|
||||||
enabled: !!id,
|
enabled: !!id,
|
||||||
});
|
});
|
||||||
|
|
||||||
const executions = executionsData?? [];
|
const executions = executionsData ?? [];
|
||||||
|
|
||||||
// Mutations --------------------------------------------------------------
|
// Mutations --------------------------------------------------------------
|
||||||
const updateMutation = useMutation({
|
const updateMutation = useMutation({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue