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, [ disposeOnUnmount(this, [
reaction(() => this.startURL, url => { reaction(() => this.startURL, url => {
if (!this.clusterReady) { const redirect = !this.clusterReady || !clusterStore.hasClusters();
navigation.replace(url); if (redirect) navigation.replace(url);
}
}, { }, {
fireImmediately: true fireImmediately: true
}) })
+1
View File
@@ -18,6 +18,7 @@ export default function (): webpack.Configuration {
[appName]: path.resolve(rendererDir, "index.tsx"), [appName]: path.resolve(rendererDir, "index.tsx"),
}, },
output: { output: {
publicPath: "/",
path: outDir, path: outDir,
filename: '[name].js', filename: '[name].js',
chunkFilename: 'chunks/[name].js', chunkFilename: 'chunks/[name].js',