2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Fix for empty option

This commit is contained in:
Oliver Walters 2020-08-27 08:41:38 +10:00
parent 27f7745231
commit b17c3f6e0f

View File

@ -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) {