Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion airflow/www/static/js/dag/useFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface FilterHookReturn extends UtilFunctions {

// Params names
export const BASE_DATE_PARAM = "base_date";
export const EXECUTION_DATE_PARAM = "execution_date";
export const NUM_RUNS_PARAM = "num_runs";
export const RUN_TYPE_PARAM = "run_type";
export const RUN_STATE_PARAM = "run_state";
Expand All @@ -93,7 +94,10 @@ const useFilters = (): FilterHookReturn => {
? searchParams.get(FILTER_DOWNSTREAM_PARAM) === "true"
: undefined;

const baseDate = searchParams.get(BASE_DATE_PARAM) || now;
const baseDate =
searchParams.get(BASE_DATE_PARAM) ||
searchParams.get(EXECUTION_DATE_PARAM) ||
now;
const numRuns =
searchParams.get(NUM_RUNS_PARAM) || defaultDagRunDisplayNumber.toString();

Expand Down