mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for empty option
This commit is contained in:
parent
27f7745231
commit
b17c3f6e0f
@ -77,7 +77,7 @@ function setFieldOptions(fieldName, optionList, options={}) {
|
|||||||
|
|
||||||
if (addEmptyOption) {
|
if (addEmptyOption) {
|
||||||
// Add an 'empty' option at the top of the list
|
// Add an 'empty' option at the top of the list
|
||||||
field.append(makeOption('---------', '', '---------'));
|
field.append(`<option value="">---------</option>`);
|
||||||
}
|
}
|
||||||
|
|
||||||
optionList.forEach(function(option) {
|
optionList.forEach(function(option) {
|
||||||
|
Loading…
Reference in New Issue
Block a user