diff --git a/projects/plugins/jetpack/extensions/blocks/instagram-gallery/use-instagram-gallery.js b/projects/plugins/jetpack/extensions/blocks/instagram-gallery/use-instagram-gallery.js index 7fcfd1b98439c..80811394ac2cb 100644 --- a/projects/plugins/jetpack/extensions/blocks/instagram-gallery/use-instagram-gallery.js +++ b/projects/plugins/jetpack/extensions/blocks/instagram-gallery/use-instagram-gallery.js @@ -71,7 +71,8 @@ export default function useInstagramGallery( { setAttributes( { accessToken: undefined, instagramUser: undefined } ); setSelectedAccount( undefined ); } ); - }, [ accessToken, noticeOperations, setAttributes, setSelectedAccount ] ); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [ accessToken, setAttributes, setSelectedAccount ] ); return { images, isLoadingGallery, setImages }; }