Skip to content

Commit

Permalink
fix: avoid duplicate tooltip for disabled rename header (#1000)
Browse files Browse the repository at this point in the history
## Done

- avoid duplicate tooltip for disabled rename header
  • Loading branch information
mas-who authored Nov 22, 2024
2 parents bd6df27 + c32ab33 commit aaf4e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RenameHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const RenameHeader: FC<Props> = ({
<li
className="p-heading--4 u-no-margin--bottom name continuous-breadcrumb u-truncate"
onClick={toggleRename}
title={`Rename ${name}`}
title={canRename ? `Rename ${name}` : ""}
>
<Tooltip
message={!canRename && renameDisabledReason}
Expand Down

0 comments on commit aaf4e9c

Please sign in to comment.