fix: reloading page at Apps/* causing black-screen

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-21 19:54:56 +03:00
1 parent 5040a4354b
commit 684c1ed068
2 files changed
+3 -3

No files matched your search

+2 -3
View File
@@ -56,9 +56,8 @@ export class App extends React.Component {
disposeOnUnmount(this, [
reaction(() => this.startURL, url => {
if (!this.clusterReady) {
navigation.replace(url);
}
const redirect = !this.clusterReady || !clusterStore.hasClusters();
if (redirect) navigation.replace(url);
}, {
fireImmediately: true
})