Fixed issue of duplicate values shown in Column>Columns to Import/Export dropdown when a value(values) is unselected.

refs #7017
pull/70/head
Yogesh Mahajan 2022-01-27 17:20:05 +05:30 committed by Akshay Joshi
parent 8fd3ddc4ae
commit 47479e5e5c
1 changed files with 3 additions and 2 deletions

View File

@ -67,10 +67,11 @@ define([
),
()=>getMiscellaneousSchema(),
{columns: ()=>getNodeListByName('column', treeNodeInfo, itemNodeData, { cacheLevel: 'column'}, ()=>true, (res)=>{
let columnsList = [];
res.forEach(d => {
res.push({label: d.label, value: d.value, image:'icon-column', selected: true});
columnsList.push({label: d.label, value: d.value, image:'icon-column', selected: true});
});
return res;
return columnsList;
})}
);
},