Skip to content

Commit

Permalink
Fix python, ninja and cmake mode selector
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Sep 11, 2024
1 parent ca92b29 commit cb61b8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ var exampleSupportedBoards = [];
let ninjaVersion = null;
for (let i = 0; i < ninjaVersionRadio.length; i++) {
if (ninjaVersionRadio[i].checked) {
ninjaMode = ninjaVersionRadio[i].value;
ninjaMode = Number(ninjaVersionRadio[i].value);
break;
}
}
Expand Down Expand Up @@ -169,7 +169,7 @@ var exampleSupportedBoards = [];
let cmakeVersion = null;
for (let i = 0; i < cmakeVersionRadio.length; i++) {
if (cmakeVersionRadio[i].checked) {
cmakeMode = cmakeVersionRadio[i].value;
cmakeMode = Number(cmakeVersionRadio[i].value);
break;
}
}
Expand Down Expand Up @@ -216,7 +216,7 @@ var exampleSupportedBoards = [];
let pythonPath = null;
for (let i = 0; i < pythonVersionRadio.length; i++) {
if (pythonVersionRadio[i].checked) {
pythonMode = pythonVersionRadio[i].value;
pythonMode = Number(pythonVersionRadio[i].value);
break;
}
}
Expand Down

0 comments on commit cb61b8b

Please sign in to comment.