Skip to content

Commit

Permalink
openflights.js: still pass -1 when updating top 10
Browse files Browse the repository at this point in the history
Fixes #1468
  • Loading branch information
reedy authored Mar 13, 2024
1 parent 74539bd commit 5234b5b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions openflights.js
Original file line number Diff line number Diff line change
Expand Up @@ -2803,10 +2803,7 @@ function updateTop10() {
const params = new URLSearchParams();
if (form) {
params.set("mode", form.mode[form.mode.selectedIndex].value);
const limit = form.limit[form.limit.selectedIndex].value;
if (limit !== "-1") {
params.set("limit", limit);
}
params.set("limit", form.limit[form.limit.selectedIndex].value);
} else {
params.set("mode", "F");
params.set("limit", 10);
Expand Down

0 comments on commit 5234b5b

Please sign in to comment.