mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix bug - deleted namespace does not get auto unselected (#930)
* fix bug - deleted namespace does not get auto unselected Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>
This commit is contained in:
parent
299eceaee4
commit
25aac57a86
@ -87,6 +87,11 @@ export class NamespaceStore extends KubeObjectStore<Namespace> {
|
||||
super.reset();
|
||||
this.contextNs.clear();
|
||||
}
|
||||
|
||||
async remove(item: Namespace) {
|
||||
await super.remove(item);
|
||||
this.contextNs.remove(item.getName());
|
||||
}
|
||||
}
|
||||
|
||||
export const namespaceStore = new NamespaceStore();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user