From db597abc887dee11e04f1eac0835c14d5f5d634b Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 24 Sep 2020 09:26:00 -0400 Subject: [PATCH] add comment about retry Signed-off-by: Sebastian Malton --- src/renderer/components/dock/install-chart.store.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/dock/install-chart.store.ts b/src/renderer/components/dock/install-chart.store.ts index ab316ced47..bc31c44cb0 100644 --- a/src/renderer/components/dock/install-chart.store.ts +++ b/src/renderer/components/dock/install-chart.store.ts @@ -64,11 +64,12 @@ export class InstallChartStore extends DockTabStore { const data = this.getData(tabId) const { repo, name, version } = data - for (const i of Array(3)) { + // This loop is for "retrying" the "getValues" call + for (const _ of Array(3)) { const values = await helmChartsApi.getValues(repo, name, version) if (values) { this.setData(tabId, { ...data, values }) - break + return } } }