diff --git a/airflow/www/templates/airflow/dags.html b/airflow/www/templates/airflow/dags.html
index b9d98361d5574..04adcb8d6023d 100644
--- a/airflow/www/templates/airflow/dags.html
+++ b/airflow/www/templates/airflow/dags.html
@@ -390,7 +390,7 @@
DAGs
$('.js-loading-last-run').remove();
}
- function drawDagStatsForDag(dag_id, stats) {
+ function drawDagStatsForDag(dag_id, states) {
g = d3.select('svg#dag-run-' + dag_id.replace(/\./g, '__dot__'))
.attr('height', diameter + (stroke_width_hover * 2))
.attr('width', '110px')