Skip to content

Commit

Permalink
fixed: handle undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Corbe30 committed Dec 16, 2024
1 parent 12c2c0c commit bcb01ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/modules/formula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1185,9 +1185,10 @@ export function groupValuesRefresh(ctx: Context) {

export function setFormulaCellInfoMap(
ctx: Context,
calcChains: any,
calcChains?: any[],
data?: CellMatrix
) {
if (_.isNil(calcChains)) return;
for (let i = 0; i < calcChains.length; i += 1) {
const formulaCell = calcChains[i];
setFormulaCellInfo(ctx, formulaCell, data);
Expand Down

0 comments on commit bcb01ba

Please sign in to comment.