Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheets): functionNode not exist (#5836)
zxjd44d77c33b70
diff --git a/packages/engine-formula/src/engine/ast-node/value-node.ts b/packages/engine-formula/src/engine/ast-node/value-node.tsindex c983dd46b1..33eab93ed7 100644--- a/packages/engine-formula/src/engine/ast-node/value-node.ts+++ b/packages/engine-formula/src/engine/ast-node/value-node.ts@@ -34,7 +34,7 @@ export class ValueNode extends BaseAstNode {}override execute(): void {- const isIgnoreNumberPattern = this.getParent()?.nodeType === NodeType.FUNCTION && (this.getParent() as FunctionNode).isFunctionExecutorArgumentsIgnoreNumberPattern();+ const isIgnoreNumberPattern = this.getParent()?.nodeType === NodeType.FUNCTION && (this.getParent() as FunctionNode)?.isFunctionExecutorArgumentsIgnoreNumberPattern?.();this.setValue(ValueObjectFactory.create(this.getToken(), isIgnoreNumberPattern));}}