1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-02-09 08:15:47 +02:00
parent 4400c2b260
commit ee501b4965

View File

@ -171,7 +171,7 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
}
@action
mergeItems(partialItems: T[], { replace = false, updateStore = true, sort = true, filter = true } = {}): T[] {
protected mergeItems(partialItems: T[], { replace = false, updateStore = true, sort = true, filter = true } = {}): T[] {
let items = partialItems;
// update existing items
@ -275,7 +275,7 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
this.eventsBuffer.push(data);
};
if (this.context.cluster.isGlobalWatchEnabled) {
if (this.context.cluster?.isGlobalWatchEnabled && this.loadedNamespaces.length === 0) {
disposers = apis.map(api => api.watch({
namespace: "",
callback: (data) => callback(data),