Skip to content

Commit fc8789d

Browse files
[v3-0-test] Fix DagRun list (#52986) (#52989)
(cherry picked from commit 64d87e5) Co-authored-by: Pierre Jeambrun <[email protected]>
1 parent b2ed15b commit fc8789d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

airflow-core/src/airflow/ui/src/pages/DagRuns.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { Flex, HStack, Link, type SelectValueChangeDetails, Text } from "@chakra
2222
import type { ColumnDef } from "@tanstack/react-table";
2323
import { useCallback } from "react";
2424
import { Link as RouterLink, useParams, useSearchParams } from "react-router-dom";
25-
import { useLocalStorage } from "usehooks-ts";
2625

2726
import { useDagRunServiceGetDagRuns } from "openapi/queries";
2827
import type { DAGRunResponse, DagRunState, DagRunType } from "openapi/requests/types.gen";
@@ -148,13 +147,12 @@ export const DagRuns = () => {
148147
const endDate = searchParams.get(END_DATE_PARAM);
149148

150149
const refetchInterval = useAutoRefresh({});
151-
const [limit] = useLocalStorage<number>(`dag_runs_limit-${dagId}`, 10);
152150

153151
const { data, error, isLoading } = useDagRunServiceGetDagRuns(
154152
{
155153
dagId: dagId ?? "~",
156154
endDateLte: endDate ?? undefined,
157-
limit,
155+
limit: pagination.pageSize,
158156
offset: pagination.pageIndex * pagination.pageSize,
159157
orderBy,
160158
runType: filteredType === null ? undefined : [filteredType],

0 commit comments

Comments
 (0)