luci-app-lldpd: correctness fixes

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-05-26 00:18:47 +03:00
parent ef94e6827f
commit e581262ba8
2 changed files with 4 additions and 5 deletions
@@ -184,7 +184,7 @@ const CBIMultiIOSelect = form.MultiValue.extend({
renderWidget(section_id, option_index, cfgvalue) {
const value = (cfgvalue != null) ? cfgvalue : this.default ? this.default : '';
const choices = this.transformChoices() ? this.transformChoices() : '';
const choices = this.transformChoices() || '';
const widget = new ui.Dropdown(L.toArray(value), choices, {
id: this.cbid(section_id),
@@ -156,10 +156,9 @@ return L.view.extend({
/** @private */
renderNumber(v) {
if (parseInt(v))
return v;
if (v === undefined || v === null)
return '&#8211;';
return parseInt(v);
},
/** @private */