From 5d037305a66b9bcb19b9d48626c5750d832c6a60 Mon Sep 17 00:00:00 2001 From: Sanchit Agarwal Date: Wed, 8 May 2024 16:29:47 +0530 Subject: [PATCH] update execfunction signature --- packages/core/src/modules/cell.ts | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/core/src/modules/cell.ts b/packages/core/src/modules/cell.ts index 673f0e4d..ad953467 100644 --- a/packages/core/src/modules/cell.ts +++ b/packages/core/src/modules/cell.ts @@ -829,7 +829,7 @@ export function updateCell( if (_.isPlainObject(curv)) { if (!isCurInline) { if (_.isString(value) && value.slice(0, 1) === "=" && value.length > 1) { - const v = execfunction(ctx, value, r, c, undefined, true); + const v = execfunction(ctx, value, r, c, undefined, undefined, true); isRunExecFunction = false; curv = _.cloneDeep(d?.[r]?.[c] || {}); [, curv.v, curv.f] = v; @@ -859,7 +859,15 @@ export function updateCell( valueFunction.slice(0, 1) === "=" && valueFunction.length > 1 ) { - const v = execfunction(ctx, valueFunction, r, c, undefined, true); + const v = execfunction( + ctx, + valueFunction, + r, + c, + undefined, + undefined, + true + ); isRunExecFunction = false; // get v/m/ct @@ -912,7 +920,7 @@ export function updateCell( value = curv; } else { if (_.isString(value) && value.slice(0, 1) === "=" && value.length > 1) { - const v = execfunction(ctx, value, r, c, undefined, true); + const v = execfunction(ctx, value, r, c, undefined, undefined, true); isRunExecFunction = false; value = { v: v[1], @@ -941,7 +949,15 @@ export function updateCell( valueFunction.slice(0, 1) === "=" && valueFunction.length > 1 ) { - const v = execfunction(ctx, valueFunction, r, c, undefined, true); + const v = execfunction( + ctx, + valueFunction, + r, + c, + undefined, + undefined, + true + ); isRunExecFunction = false; // value = { // "v": v[1],