Skip to content

Commit

Permalink
useEffect had a missing dependency: 'setSelectedGiphy'
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Mar 10, 2021
1 parent 3be33fe commit 1a5786b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/extensions/blocks/gif/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function GifEdit( {
if ( giphyData && giphyData[ 0 ] ) {
setSelectedGiphy( giphyData[ 0 ] );
}
}, [ giphyData ] );
}, [ giphyData, setSelectedGiphy ] );

const onSubmit = ( event ) => {
event.preventDefault();
Expand Down

0 comments on commit 1a5786b

Please sign in to comment.