mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +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;
|
||||
}
|
||||
}
|
||||
});
|
||||
},[title, preventRefreshingPageTitle, customPageTitle]);
|
||||
|
||||
if (title) {
|
||||
return <h1 className={classNames("title", className)}>{title}</h1>;
|
||||
|
||||
Reference in New Issue
Block a user