Skip to content

Commit

Permalink
Update hasValue check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Dec 6, 2023
1 parent 14ec9c7 commit 22c851a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export default function Image( {
<ToolsPanelItem
label={ __( 'Alternative text' ) }
isShownByDefault={ true }
hasValue={ () => alt !== '' }
hasValue={ () => !! alt }
onDeselect={ () =>
setAttributes( { alt: undefined } )
}
Expand Down

0 comments on commit 22c851a

Please sign in to comment.