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
chore(sheets): silent duplicate name error (#1584)
Wenzhao Hu040edc470cb7
diff --git a/packages/core/src/sheets/workbook.ts b/packages/core/src/sheets/workbook.tsindex e5bf7bb09c..4c9558c112 100644--- a/packages/core/src/sheets/workbook.ts+++ b/packages/core/src/sheets/workbook.ts@@ -523,7 +523,7 @@ export class Workbook extends Disposable {worksheetSnapshot.name = this.uniqueSheetName(name);if (worksheetSnapshot.name !== name) {- this._logService.error(`The worksheet name ${name} is duplicated, we change it to ${worksheetSnapshot.name}`);+ this._logService.debug('[Workbook]', `The worksheet name ${name} is duplicated, we changed it to ${worksheetSnapshot.name}. Please fix the problem in your snapshot.`);}const worksheet = new Worksheet(worksheetSnapshot, this._styles);