mirror of
https://github.com/openwrt/luci.git
synced 2026-01-13 20:00:29 +04:00
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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user