mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
[se] By bug 74557: fix duplicated values
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user