correct field display in unmapped

This commit is contained in:
wellenvogel 2021-11-26 00:27:13 +01:00
parent 284be741f5
commit 172f8393d9
1 changed files with 8 additions and 1 deletions

View File

@ -636,8 +636,15 @@ function convertUnassigned(value){
let cname=getXdrCategoryName(cid); let cname=getXdrCategoryName(cid);
if (! cname) return rt; if (! cname) return rt;
let fieldName=""; let fieldName="";
let idx=0;
(category.fields || []).forEach(function(f){ (category.fields || []).forEach(function(f){
if (parseInt(f.v) == field) fieldName=f.l; if (f.v === undefined){
if (idx == field) fieldName=f.l;
}
else{
if (parseInt(f.v) == field) fieldName=f.l;
}
idx++;
}); });
let selectorName=selector+""; let selectorName=selector+"";
(category.selector ||[]).forEach(function(s){ (category.selector ||[]).forEach(function(s){