Skip to content

Commit

Permalink
WebHost: Fix NamedRange option dropdown being blank instead of custom…
Browse files Browse the repository at this point in the history
… when applying presets
  • Loading branch information
remyjette committed Oct 16, 2024
1 parent 26577b1 commit 16787ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WebHostLib/static/assets/playerOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ const applyPresets = (presetName) => {
}
});
namedRangeSelect.value = trueValue;
// It is also possible for a preset to use an unnamed value. If this happens, set the dropdown to "Custom"
if (namedRangeSelect.selectedIndex == -1)
{
namedRangeSelect.value = "custom";
}
}

// Handle options whose presets are "random"
Expand Down

0 comments on commit 16787ff

Please sign in to comment.