Skip to content

Commit

Permalink
fix wrong link in TriggeredDagRuns (apache#41166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W authored Aug 1, 2024
1 parent 4ef847b commit a6f954e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions airflow/www/static/js/components/TriggeredDagRuns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ const TriggeredDagRuns = ({ createdDagRuns, showLink = true }: CardProps) => {
<Flex alignItems="center">
{createdDagRuns.map((run) => {
const runId = (run as any).dagRunId; // For some reason the type is wrong here
const url = `${gridUrl?.replace(
"__DAG_ID__",
run.dagId || ""
)}?dag_run_id=${encodeURIComponent(runId)}`;
const splitGridUrl = gridUrl.split("/");
splitGridUrl[2] = run.dagId || "";
const url = `${splitGridUrl.join("/")}?dag_run_id=${encodeURIComponent(
runId
)}`;

return (
<Tooltip
Expand Down

0 comments on commit a6f954e

Please sign in to comment.