Fix releases not reloading when selecting namespaces (#2515)

This commit is contained in:
Sebastian Malton committed 2021-04-19 11:46:07 -04:00
1 parent 92139d26ed
commit c79b6c0015
8 files changed
+128 -117

No files matched your search

@@ -14,8 +14,18 @@ export interface IChartVersion {
export class HelmChartStore extends ItemStore<HelmChart> {
@observable versions = observable.map<string, IChartVersion[]>();
loadAll() {
return this.loadItems(() => helmChartsApi.list());
async loadAll() {
try {
const res = await this.loadItems(() => helmChartsApi.list());
this.failedLoading = false;
return res;
} catch (error) {
this.failedLoading = true;
throw error;
}
}
getByName(name: string, repo: string) {