Skip to content

Commit 5eddbce

Browse files
committed
ui: actually use the label that is going to be appended
optgroups don't have labels so this works as well.
1 parent b2bcedb commit 5eddbce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opnsense/www/js/opnsense_ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ $.fn.replaceInputWithSelector = function (data, multiple=false) {
917917
optgrp.append($("<option/>").val(key2).text(this_item));
918918
});
919919
options.push(optgrp);
920-
} else if (data[key].title === undefined) {
920+
} else if (data[key].label !== undefined) {
921921
options.push($("<option/>").val(empty_select_token).text(data[key].label));
922922
}
923923
});

0 commit comments

Comments
 (0)