mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
ensure notification template re-loads after saving
This commit is contained in:
@@ -45,9 +45,9 @@ function NotificationTemplate({ setBreadcrumb, i18n }) {
|
||||
|
||||
useEffect(() => {
|
||||
fetchTemplate();
|
||||
}, [fetchTemplate]);
|
||||
}, [fetchTemplate, location.pathname]);
|
||||
|
||||
if (error) {
|
||||
if (!isLoading && error) {
|
||||
return (
|
||||
<PageSection>
|
||||
<Card>
|
||||
@@ -66,7 +66,7 @@ function NotificationTemplate({ setBreadcrumb, i18n }) {
|
||||
);
|
||||
}
|
||||
|
||||
const showCardHeader = !isLoading && !location.pathname.endsWith('edit');
|
||||
const showCardHeader = !location.pathname.endsWith('edit');
|
||||
const tabs = [
|
||||
{
|
||||
name: (
|
||||
|
||||
Reference in New Issue
Block a user