Skip to content

Commit

Permalink
fixed: calculate formula args
Browse files Browse the repository at this point in the history
  • Loading branch information
Corbe30 committed Jan 9, 2025
1 parent dc4b12a commit 87300ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react/src/components/Workbook/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,9 @@ export function generateAPIs(
handleUndo,
handleRedo,

calculateFormula: () => {
calculateFormula: (id?: string, range?: SingleRange) => {
setContext((draftCtx) => {
_.forEach(draftCtx.luckysheetfile, (sheet_obj) => {
api.calculateFormula(draftCtx, sheet_obj.id as string);
});
api.calculateFormula(draftCtx, id, range);
});
},

Expand Down

0 comments on commit 87300ff

Please sign in to comment.