1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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

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

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
}) })

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',