mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix application blanking on cluster disconnect
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
bcc5e871ad
commit
2f1edc0c0b
@ -89,8 +89,11 @@ export class ClusterFrameHandler {
|
||||
() => {
|
||||
this.dependencies.logger.info(`[LENS-VIEW]: remove dashboard, clusterId=${clusterId}`);
|
||||
this.views.delete(clusterId);
|
||||
parentElem.removeChild(iframe);
|
||||
dispose();
|
||||
|
||||
// NOTE: this setTimeout is needed to fix the entire application going blank.
|
||||
// TODO: remove iframes
|
||||
setTimeout(() => parentElem.removeChild(iframe));
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user