mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-18 03:01:05 +01:00
add dependencies to sideEffect in Title.tsx
This commit is contained in:
@@ -17,7 +17,7 @@ const Title: FC<Props> = ({ title, preventRefreshingPageTitle, customPageTitle,
|
|||||||
document.title = title;
|
document.title = title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
},[title, preventRefreshingPageTitle, customPageTitle]);
|
||||||
|
|
||||||
if (title) {
|
if (title) {
|
||||||
return <h1 className={classNames("title", className)}>{title}</h1>;
|
return <h1 className={classNames("title", className)}>{title}</h1>;
|
||||||
|
|||||||
Reference in New Issue
Block a user