diff --git a/airflow/www/static/js/dag/details/dagRun/index.tsx b/airflow/www/static/js/dag/details/dagRun/index.tsx index e77dcff84ef6b..7b8d920556ebd 100644 --- a/airflow/www/static/js/dag/details/dagRun/index.tsx +++ b/airflow/www/static/js/dag/details/dagRun/index.tsx @@ -63,7 +63,9 @@ const DagRun = ({ runId }: Props) => { const offsetTop = useOffsetTop(detailsRef); const run = dagRuns.find((dr) => dr.runId === runId); - const { onCopy, hasCopied } = useClipboard(run?.conf || ""); + const { onCopy, hasCopied } = useClipboard( + JSON.stringify(JSON.parse(run?.conf || ""), null, 4) + ); if (!run) return null; const { state,