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:
parent
5040a4354b
commit
684c1ed068
@ -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
|
||||
})
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user