a bit more of a refactoring

This commit is contained in:
nixa 2016-05-13 18:40:34 +03:00
parent 1d6c0554a3
commit b50775a96a
3 changed files with 27 additions and 12 deletions

View file

@ -12,7 +12,9 @@ export class ContentTop {
constructor(private _state:AppState) {
this._state.subscribe('menu.activeLink', (activeLink) => {
this.activePageTitle = activeLink.title;
if (activeLink) {
this.activePageTitle = activeLink.title;
}
});
}
}