mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
4400c2b260
commit
ee501b4965
1 file changed
+2
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user