summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
diff options
context:
space:
mode:
authorMiguel Angel Mulero Martinez <migmul@gmail.com>2023-10-19 11:49:57 +0200
committerMiguel Angel Mulero Martinez <migmul@gmail.com>2023-10-19 12:56:51 +0200
commit021c4394871e062964e1601775f4c951d0e2b878 (patch)
treea09cf4978fcb85fd78eb27062d8fcb8562ab18df /applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
parente41228d8d5262b6fdda10f9b7712da3c03183a7b (diff)
luci-app-attendedsysupgrade: fix search for x86 target
The conditional is wrong. IndexOf returns a number and not true/false, so it does not work. Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js')
-rw-r--r--applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
index 7b067d7e8d..450af35496 100644
--- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
+++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
@@ -89,7 +89,7 @@ return view.extend({
for (image of images) {
if (this.firmware.filesystem == image.filesystem) {
// x86 images can be combined-efi (EFI) or combined (BIOS)
- if(this.firmware.target.indexOf("x86")) {
+ if(this.firmware.target.indexOf("x86") != -1) {
if (this.data.efi && image.type == 'combined-efi') {
return image;
} else if (image.type == 'combined') {