Fixing some minor console errors (#2792)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
0e65a4d883
Коммит
5f7675d2f7
@@ -64,7 +64,7 @@ export default class NeedsTeam extends React.Component {
|
|||||||
// Go to tutorial if we are first arrivign
|
// Go to tutorial if we are first arrivign
|
||||||
const tutorialStep = PreferenceStore.getInt(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), 999);
|
const tutorialStep = PreferenceStore.getInt(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), 999);
|
||||||
if (tutorialStep <= TutorialSteps.INTRO_SCREENS) {
|
if (tutorialStep <= TutorialSteps.INTRO_SCREENS) {
|
||||||
browserHistory.push(Utils.getTeamURLFromAddressBar() + '/tutorial');
|
browserHistory.push(Utils.getTeamURLNoOriginFromAddressBar() + '/tutorial');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set up tracking for whether the window is active
|
// Set up tracking for whether the window is active
|
||||||
@@ -82,7 +82,7 @@ export default class NeedsTeam extends React.Component {
|
|||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
UserStore.removeChangeListener(this.onChanged);
|
UserStore.removeChangeListener(this.onChanged);
|
||||||
TeamStore.addChangeListener(this.onChanged);
|
TeamStore.removeChangeListener(this.onChanged);
|
||||||
$(window).off('focus');
|
$(window).off('focus');
|
||||||
$(window).off('blur');
|
$(window).off('blur');
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user