tirkarthi commented on PR #45095:
URL: https://github.com/apache/airflow/pull/45095#issuecomment-2561957593
Below seems to fix this issue. I don't see any changes to table state in the
fix. Somewhere along the line the search params and table state seem to get out
of sync.
```patch
gd src/pages/DagsList/DagsFilters.tsx | cat
diff --git a/airflow/ui/src/pages/DagsList/DagsFilters.tsx
b/airflow/ui/src/pages/DagsList/DagsFilters.tsx
index 94cca4d5ee..2c766af8e4 100644
--- a/airflow/ui/src/pages/DagsList/DagsFilters.tsx
+++ b/airflow/ui/src/pages/DagsList/DagsFilters.tsx
@@ -86,11 +86,11 @@ export const DagsFilters = () => {
} else {
searchParams.set(PAUSED_PARAM, val);
}
- setSearchParams(searchParams);
setTableURLState({
pagination: { ...pagination, pageIndex: 0 },
sorting,
});
+ setSearchParams(searchParams);
},
[pagination, searchParams, setSearchParams, setTableURLState, sorting],
);
@@ -103,11 +103,11 @@ export const DagsFilters = () => {
} else {
searchParams.set(LAST_DAG_RUN_STATE_PARAM, value);
}
- setSearchParams(searchParams);
setTableURLState({
pagination: { ...pagination, pageIndex: 0 },
sorting,
});
+ setSearchParams(searchParams);
},
[pagination, searchParams, setSearchParams, setTableURLState,
sorting],
);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]