diff options
author | 2021-12-19 15:43:09 +0100 | |
---|---|---|
committer | 2021-12-19 15:43:09 +0100 | |
commit | 4b909b13fbb6d8d72ab38700b91cf18920d72fc4 (patch) | |
tree | 556d998e72ce71fb97bf89a65edaa0bb394964ae /src/containers/layout/AppLayoutContainer.js | |
parent | Iterate on About Ferdi screen (diff) | |
download | ferdium-app-4b909b13fbb6d8d72ab38700b91cf18920d72fc4.tar.gz ferdium-app-4b909b13fbb6d8d72ab38700b91cf18920d72fc4.tar.zst ferdium-app-4b909b13fbb6d8d72ab38700b91cf18920d72fc4.zip |
Hotfix for requireAuthenticatedUser error
Diffstat (limited to 'src/containers/layout/AppLayoutContainer.js')
-rw-r--r-- | src/containers/layout/AppLayoutContainer.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/containers/layout/AppLayoutContainer.js b/src/containers/layout/AppLayoutContainer.js index 536083c4f..c70144c8e 100644 --- a/src/containers/layout/AppLayoutContainer.js +++ b/src/containers/layout/AppLayoutContainer.js | |||
@@ -40,8 +40,18 @@ class AppLayoutContainer extends Component { | |||
40 | requests, | 40 | requests, |
41 | user, | 41 | user, |
42 | workspaces, | 42 | workspaces, |
43 | router | ||
43 | } = this.props.stores; | 44 | } = this.props.stores; |
44 | 45 | ||
46 | /* HOTFIX for: | ||
47 | [mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: 'Reaction[bound ]' TypeError: Cannot read properties of null (reading 'push') | ||
48 | at RouterStore.push (store.js:25) | ||
49 | at UserStore._requireAuthenticatedUser | ||
50 | */ | ||
51 | if (!user.isLoggedIn) { | ||
52 | router.push('/auth/welcome'); | ||
53 | } | ||
54 | |||
45 | const { | 55 | const { |
46 | setActive, | 56 | setActive, |
47 | handleIPCMessage, | 57 | handleIPCMessage, |