fix(sheets): fix the worksheet rename event will triggered even if the name unchanged (#6459)

This commit is contained in:
wpxp123456
2026-01-12 19:46:53 +08:00
committed by GitHub
parent 7526701c55
commit ca8866eeb9
@@ -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,