Skip to content

Commit

Permalink
index.js: include upcoming_version when adding snapshots
Browse files Browse the repository at this point in the history
Order of operations was ignoring the upcoming version when adding
'*-SNAPSHOT' versions.  Make sure to put the upcoming version into
the versions list before we add snapshots.

Links: openwrt#7 (comment)
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
  • Loading branch information
efahl committed Jan 19, 2025
1 parent e9e4d92 commit 5e7044e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,14 +837,14 @@ async function init() {
}) >= 0
);

if (config.show_snapshots) {
insertSnapshotVersions(versions);
}

if (config.upcoming_version != "") {
versions.push(obj.upcoming_version);
}

if (config.show_snapshots) {
insertSnapshotVersions(versions);
}

return {
versions: versions,
image_url_override: obj.image_url_override,
Expand Down

0 comments on commit 5e7044e

Please sign in to comment.