yocto_console_view: Fix releaseselector for missing repos

If a field doesn't exist in the current build, allow the selector to still work
(e.g. meta-arm branch in a-quick).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2021-07-26 10:50:56 +01:00
parent 5393cf8be7
commit 2e1aaeede7

View File

@ -52,7 +52,9 @@ class _releaseselectorfield {
const result = [];
for (let k in selector) {
const v = selector[k];
result.push(fields_ref[k].value = v);
if (k in fields_ref) {
result.push(fields_ref[k].value = v);
}
}
return result;
})();