Skip to content

Commit

Permalink
Fix iteration over line-ID options values
Browse files Browse the repository at this point in the history
It's not possible to iterate on a HTMLOptionsCollection with
forEach directly, it must be called indirectly.

Bug: T384789
  • Loading branch information
samwilson committed Jan 26, 2025
1 parent ba4482c commit 1fa0893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function fetchLineModelsJSON () {
function updateLineModelOptions () {
const staticOptions = $lineDetectionSelect[0].options;
let staticOptionData = [];
staticOptions.forEach(option => {
Array.prototype.forEach.call(staticOptions, option => {
staticOptionData.push({
text: option.text,
value: option.value
Expand Down

0 comments on commit 1fa0893

Please sign in to comment.