This is an automated email from the ASF dual-hosted git repository.
weilee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new a6f954e873 fix wrong link in TriggeredDagRuns (#41166)
a6f954e873 is described below
commit a6f954e873e363608d79d0e444c5ef1099b911e8
Author: Wei Lee <[email protected]>
AuthorDate: Thu Aug 1 13:35:32 2024 +0800
fix wrong link in TriggeredDagRuns (#41166)
---
airflow/www/static/js/components/TriggeredDagRuns.tsx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/airflow/www/static/js/components/TriggeredDagRuns.tsx
b/airflow/www/static/js/components/TriggeredDagRuns.tsx
index f017fbe488..26cf1abac6 100644
--- a/airflow/www/static/js/components/TriggeredDagRuns.tsx
+++ b/airflow/www/static/js/components/TriggeredDagRuns.tsx
@@ -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