Skip to content

Commit

Permalink
Remove attributes.metadata & label from dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Nov 29, 2024
1 parent 1b7b4bf commit 3dcf20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function SearchEdit( {
const { name, ...metadata } = attributes.metadata || {};
setAttributes( { metadata } );
}
}, [ isEnhancedPagination, setAttributes, label, attributes.metadata ] );
}, [ isEnhancedPagination, setAttributes ] );

const wasJustInsertedIntoNavigationBlock = useSelect(
( select ) => {
Expand Down

0 comments on commit 3dcf20f

Please sign in to comment.