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>
This commit is contained in:
parent
e41228d8d5
commit
021c439487
1 changed files with 1 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue