Skip to content

Commit

Permalink
update execfunction signature
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchit3008 committed May 8, 2024
1 parent dafa973 commit 5d03730
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions packages/core/src/modules/cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 5d03730

Please sign in to comment.