Skip to content
Commit 7f5becc6 authored by Paul Spooren's avatar Paul Spooren
Browse files

luci-app-attendedsysupgrade: fix empty array condition



In JavaScript (other than in Python) an empty array is considered `true`
within if statements. Fix this by checking for the array length rather
than its existence.

This fixes the issue of an empty dropdown menu in case the user is
running the latest release.

Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
parent 65a3166c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment