Skip to content

Commit

Permalink
fix(graph/index): prevent reading properties of undefined (reading 'id')
Browse files Browse the repository at this point in the history
  • Loading branch information
josix committed Aug 8, 2024
1 parent 6229c1c commit 7a6b04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/static/js/dag/details/graph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const Graph = ({ openGroupIds, onToggleGroups, hoveredTaskState }: Props) => {
const { nodes: upstreamDatasetNodes, edges: upstreamDatasetEdges } =
getUpstreamDatasets(
dagDetails.datasetExpression as DatasetExpression,
data?.nodes?.children ? data.nodes.children[0].id : ""
data?.nodes?.children?.[0]?.id ?? ""
);

const {
Expand Down

0 comments on commit 7a6b04d

Please sign in to comment.