Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(dynamic array refresh fix): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DR-Univer committed Dec 2, 2020
1 parent 7568ceb commit b7d634f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/global/formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -4147,11 +4147,25 @@ const luckysheetformula = {
for(let i=0;i<luckysheetfile.length;i++){
let file = luckysheetfile[i];
let calcChain = file.calcChain;
let dynamicArray_compute = file.dynamicArray_compute;
if(calcChain==null){
calcChain = [];
}

if(dynamicArray_compute==null){
dynamicArray_compute = [];
}

ret = ret.concat(calcChain);

for(let i=0;i<dynamicArray_compute.length;i++){
let d = dynamicArray_compute[0];
ret.push({
r:d.r,
c:d.c,
index:d.index
});
}
}

return ret;
Expand Down Expand Up @@ -4977,8 +4991,8 @@ const luckysheetformula = {
if(_this.execFunctionGlobalData==null){
_this.execFunctionGlobalData = {};
}
let luckysheetfile = getluckysheetfile();
let dynamicArray_compute = luckysheetfile[getSheetIndex(Store.currentSheetIndex)]["dynamicArray_compute"] == null ? {} : luckysheetfile[getSheetIndex(Store.currentSheetIndex)]["dynamicArray_compute"];
// let luckysheetfile = getluckysheetfile();
// let dynamicArray_compute = luckysheetfile[getSheetIndex(Store.currentSheetIndex)]["dynamicArray_compute"] == null ? {} : luckysheetfile[getSheetIndex(Store.currentSheetIndex)]["dynamicArray_compute"];

if (index == null) {
index = Store.currentSheetIndex;
Expand Down

0 comments on commit b7d634f

Please sign in to comment.