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.tsx index 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,