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:
Yangjun Wang authored and GitHub committed 2020-09-21 15:08:44 +03:00
1 parent 299eceaee4
commit 25aac57a86
1 file changed
+5
@@ -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();