Skip to content

Commit

Permalink
Clean some code
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Dec 3, 2024
1 parent 4614508 commit 4925e57
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/block-editor/src/hooks/block-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ function EditableBlockBindingsPanelItems( {
} }
>
<BlockBindingsAttribute
fieldsList={ fieldsList }
attribute={ attribute }
binding={ binding }
fieldsList={ fieldsList }
/>
</Item>
</ToolsPanelItem>
Expand Down Expand Up @@ -332,12 +332,10 @@ export const BlockBindingsPanel = ( { name: blockName, metadata } ) => {
>
<ItemGroup isBordered isSeparated>
{ readOnly ? (
<div>
<ReadOnlyBlockBindingsPanelItems
bindings={ filteredBindings }
fieldsList={ fieldsList }
/>
</div>
<ReadOnlyBlockBindingsPanelItems
bindings={ filteredBindings }
fieldsList={ fieldsList }
/>
) : (
<EditableBlockBindingsPanelItems
attributes={ bindableAttributes }
Expand Down

0 comments on commit 4925e57

Please sign in to comment.