Add hideRecentCategory to useEffect hook dependency array

MAILPOET-6430
This commit is contained in:
Oluwaseun Olorunsola
2025-01-28 17:28:43 +01:00
committed by Oluwaseun Olorunsola
parent 350a90f872
commit 9a2502826f

View File

@ -59,7 +59,7 @@ function SelectTemplateBody( {
setSelectedCategory( TemplateCategories[ 0 ].name );
}
}, 1000 ); // using setTimeout to ensure the template styles are available before block preview
}, [ hasEmailPosts ] );
}, [ hasEmailPosts, hideRecentCategory ] );
return (
<div className="block-editor-block-patterns-explorer">