Skip to content

Commit

Permalink
Merge pull request #659 from Corbe30/feature/batch-api-calls
Browse files Browse the repository at this point in the history
fixed: calculate formula args
  • Loading branch information
sanchit3008 authored Jan 9, 2025
2 parents ebc72ef + 87300ff commit 0c81b5f
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 0c81b5f

Please sign in to comment.