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): fix the worksheet rename event will triggered even if the name unchanged (#6459)
wpxp123456ca8866eeb9d9
diff --git a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsxindex 15def156a0..58cc8c46be 100644--- a/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx+++ b/packages/sheets-ui/src/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.tsx@@ -147,6 +147,11 @@ export function SheetBarTabs() {slideTabBarContainer: slideTabBarContainerRef.current,currentIndex: 0,onChangeName: (subUnitId: string, worksheetName: string) => {+ if (workbook.getSheetBySheetId(subUnitId)?.getName() === worksheetName) {+ updateSheetItems();+ return;+ }+commandService.executeCommand(SetWorksheetNameCommand.id, {subUnitId,name: worksheetName,