in src/app/app.js [67:81]
updateTitle() {
const {teamName, isStandaloneHub, users, homeUrl, selectedProject} = this.state;
if (!teamName || !users || !selectedProject || typeof isStandaloneHub !== 'boolean') {
return this.setState({title: undefined});
}
const projectsPathPrefix = isStandaloneHub ? 'projects-administration' : 'admin/editProject';
const href = homeUrl
? `${homeUrl}/${projectsPathPrefix}/${selectedProject.key}?tab=team`
: undefined;
const title = {text: teamName, href, counter: users.length};
return this.setState({title});
}