Skip to content

Commit d93459b

Browse files
authored
Fetch dagrun in graph page only when runId is valid. (apache#48729)
1 parent 9f5abfb commit d93459b

File tree

1 file changed

+2
-2
lines changed
  • airflow-core/src/airflow/ui/src/layouts/Details/Graph

1 file changed

+2
-2
lines changed

airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const edgeTypes = { custom: Edge };
7777

7878
export const Graph = () => {
7979
const { colorMode = "light" } = useColorMode();
80-
const { dagId = "", runId, taskId } = useParams();
80+
const { dagId = "", runId = "", taskId } = useParams();
8181

8282
const selectedVersion = useSelectedVersion();
8383

@@ -112,7 +112,7 @@ export const Graph = () => {
112112
const { data: dagRun } = useDagRunServiceGetDagRun(
113113
{
114114
dagId,
115-
dagRunId: runId ?? "",
115+
dagRunId: runId,
116116
},
117117
undefined,
118118
{ enabled: runId !== "" },

0 commit comments

Comments
 (0)