Skip to content

Commit

Permalink
Update toolpanel setings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukhendu2002 committed Jan 13, 2025
1 parent ab063f5 commit 3887fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/table-of-contents/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function TableOfContentsEdit( {
dropdownMenuProps={ dropdownMenuProps }
>
<ToolsPanelItem
hasValue={ () => onlyIncludeCurrentPage !== false }
hasValue={ () => !! onlyIncludeCurrentPage }
label={ __( 'Only include current page' ) }
onDeselect={ () =>
setAttributes( { onlyIncludeCurrentPage: false } )
Expand Down

0 comments on commit 3887fbe

Please sign in to comment.