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

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman authored and Sebastian Malton committed 2020-07-27 09:14:16 -04:00
1 parent 49454c5f88
commit 65eea21652
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
})
+1
View File
@@ -18,6 +18,7 @@ export default function (): webpack.Configuration {
[appName]: path.resolve(rendererDir, "index.tsx"),
},
output: {
publicPath: "/",
path: outDir,
filename: '[name].js',
chunkFilename: 'chunks/[name].js',