1
0
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:
Sebastian Malton 2022-12-21 15:02:04 -05:00
parent bcc5e871ad
commit 2f1edc0c0b

View File

@ -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));
},
);
},