mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
refactoring dock-tab stores -- part 3
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
5038267bbc
commit
b421591931
8 files changed
+96
-75
No files matched your search
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
import isEqual from "lodash/isEqual";
|
||||
import { action, observable, reaction, when, makeObservable } from "mobx";
|
||||
import { action, makeObservable, observable, reaction, when } from "mobx";
|
||||
import { autoBind } from "../../utils";
|
||||
import { createRelease, deleteRelease, HelmRelease, IReleaseCreatePayload, IReleaseUpdatePayload, listReleases, rollbackRelease, updateRelease } from "../../../common/k8s-api/endpoints/helm-releases.api";
|
||||
import { ItemStore } from "../../../common/item.store";
|
||||
@@ -106,7 +106,10 @@ export class ReleaseStore extends ItemStore<HelmRelease> {
|
||||
}
|
||||
|
||||
async loadFromContextNamespaces(): Promise<void> {
|
||||
return this.loadAll(namespaceStore.context.contextNamespaces);
|
||||
const { contextNamespaces } = namespaceStore.context ?? {};
|
||||
|
||||
if (!contextNamespaces) return;
|
||||
await this.loadAll(contextNamespaces);
|
||||
}
|
||||
|
||||
async loadItems(namespaces: string[]) {
|
||||
|
||||
Reference in new issue
Block a user