Skip to content

Commit

Permalink
Excepe pageSize value retrieved from DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk committed Feb 10, 2024
1 parent 70fd6ad commit 1cd1ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/www/static/js/dags.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

/* global document, window, $, d3, STATE_COLOR, isoDateToTimeEl, autoRefreshInterval,
localStorage */

import { throttle } from "lodash";
import { getMetaValue } from "./utils";
import tiTooltip from "./task_instances";
import { approxTimeFromNow, formatDateTime } from "./datetime_utils";
import { openDatasetModal, getDatasetTooltipInfo } from "./datasetUtils";
import { escapeHtml } from "./main";

const DAGS_INDEX = getMetaValue("dags_index");
const ENTER_KEY_CODE = 13;
Expand Down Expand Up @@ -96,7 +96,7 @@ $("#dag_query").on("keypress", (e) => {
});

$("#page_size").on("change", function onPageSizeChange() {
const pSize = $(this).val();
const pSize = escapeHtml($(this).val());
window.location = `${DAGS_INDEX}?page_size=${pSize}`;
});

Expand Down

0 comments on commit 1cd1ddc

Please sign in to comment.