Add hideRecentCategory
to useEffect hook dependency array
MAILPOET-6430
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
350a90f872
commit
9a2502826f
@ -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">
|
||||
|
Reference in New Issue
Block a user