diff --git a/frontend/workflows/audit/src/logs/index.tsx b/frontend/workflows/audit/src/logs/index.tsx index cd7ae42978..3235da1d32 100644 --- a/frontend/workflows/audit/src/logs/index.tsx +++ b/frontend/workflows/audit/src/logs/index.tsx @@ -70,13 +70,13 @@ const AuditLog: React.FC = ({ heading, detailsPathPrefix, downloa const theme = useTheme(); const shrink = useMediaQuery(theme.breakpoints.down("md")); - const workflowLayoutContent = useWorkflowLayoutContext(); + const workflowLayoutContext = useWorkflowLayoutContext(); const genTimeRangeKey = () => `${startTime}-${endTime}-${new Date().toString()}`; React.useEffect(() => { if (theme.clutch.useWorkflowLayout) { - workflowLayoutContent.setHeaderContent( + workflowLayoutContext.setHeaderContent( = ({ heading, detailsPathPrefix, downloa ); } - }, [isLoading, shrink]); + }, [isLoading, shrink, startTime, endTime]); return ( diff --git a/frontend/workflows/projectCatalog/src/details/components/layout.tsx b/frontend/workflows/projectCatalog/src/details/components/layout.tsx index 14fbad11c4..67faf1d083 100644 --- a/frontend/workflows/projectCatalog/src/details/components/layout.tsx +++ b/frontend/workflows/projectCatalog/src/details/components/layout.tsx @@ -42,7 +42,7 @@ const CatalogLayout = ({ ); const projInfo = React.useMemo(() => ({ projectId, projectInfo }), [projectId, projectInfo]); const theme = useTheme(); - const workflowLayoutContent = useWorkflowLayoutContext(); + const workflowLayoutContext = useWorkflowLayoutContext(); const redirectNotFound = () => navigate(`/${projectId}/notFound`, { replace: true }); @@ -74,13 +74,13 @@ const CatalogLayout = ({ React.useEffect(() => { if (theme.clutch.useWorkflowLayout) { - workflowLayoutContent.setTitle( + workflowLayoutContext.setTitle( `${projectInfo?.name ?? projectId}${title ? ` ${title}` : ""}` ); - workflowLayoutContent.setSubtitle(description ?? (projectInfo?.data?.description as string)); + workflowLayoutContext.setSubtitle(description ?? (projectInfo?.data?.description as string)); - workflowLayoutContent.setHeaderContent( + workflowLayoutContext.setHeaderContent( projectInfo ? (