Skip to content

Commit

Permalink
Fix condition for link value in SiteTitleEdit component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukhendu2002 committed Dec 26, 2024
1 parent a7eb82c commit 58ad10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/site-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function SiteTitleEdit( {
dropdownMenuProps={ dropdownMenuProps }
>
<ToolsPanelItem
hasValue={ () => isLink === false }
hasValue={ () => ! isLink }
label={ __( 'Make title link to home' ) }
onDeselect={ () => setAttributes( { isLink: true } ) }
isShownByDefault
Expand Down

0 comments on commit 58ad10b

Please sign in to comment.