Skip to content

Commit

Permalink
Avoid unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Jun 14, 2023
1 parent de55bf0 commit 1bcc5a2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,7 @@ export function BlockSettingsDropdown( {
} ) => (
<DropdownMenuV2
open={ isDropdownOpen }
onOpenChange={ ( open ) => {
setIsDropdownOpen( open );
} }
onOpenChange={ setIsDropdownOpen }
trigger={
<Button
{ ...toggleProps }
Expand Down

0 comments on commit 1bcc5a2

Please sign in to comment.