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(formular): fix sheet maximum (#3384)
VicKun41affb74573b
diff --git a/packages/engine-formula/src/engine/dependency/dependency-tree.ts b/packages/engine-formula/src/engine/dependency/dependency-tree.tsindex aacae7d041..2ca1bde145 100644--- a/packages/engine-formula/src/engine/dependency/dependency-tree.ts+++ b/packages/engine-formula/src/engine/dependency/dependency-tree.ts@@ -392,10 +392,11 @@ export class FormulaDependencyTreeCache extends Disposable {getDependencyId(dependenceTree: FormulaDependencyTree, ids: Set<string>) {const parentIdList = this._parentIdMap.get(dependenceTree.id);if (parentIdList) {- for (const parentId of parentIdList) {+ const list = [...parentIdList];+ for (const parentId of list) {ids.add(parentId);const tree = this._dependencyMap.get(parentId);- if (tree) {+ if (tree && parentId !== dependenceTree.id) {this.getDependencyId(tree, ids);}}