fix: Blank head

This commit is contained in:
devezhao 2022-01-05 13:57:57 +08:00
parent a8b1bc21fc
commit b14f564861

View file

@ -249,7 +249,7 @@ const _fieldsMapping = (columns, fields) => {
$clone.find('option').each(function (i, o) {
const name = o.value
const label = (o.text || '').replace(canNullText, '')
if ((name && name === item) || (label && label === item.trim())) {
if ((name && name === item) || (label && label === (item || '').trim())) {
matchField = name
return false
}