[se] By bug 74557: fix duplicated values

This commit is contained in:
Igor Zotov
2025-05-21 11:18:53 +03:00
parent ce4b396743
commit 6fe6ba576a

View File

@ -617,10 +617,15 @@
if (list) {
aValue = [];
aData = [];
let duplicatedMap = [];
list._foreachNoEmpty(function (cell) {
if (!cell.isNullTextString()) {
aValue.push(cell.getValue());
aData.push(new AscCommonExcel.CCellValue(cell));
let val = cell.getValue();
if (!duplicatedMap[val]) {
aValue.push(val);
aData.push(new AscCommonExcel.CCellValue(cell));
duplicatedMap[val] = 1;
}
}
});
}