mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
032acf71c6
commit
81ca210102
1 file changed
+5
-7
@@ -22,13 +22,11 @@ const releasesInjectable = getInjectable({
|
||||
getValueFromObservedPromise: async () => {
|
||||
void releaseSecrets.get();
|
||||
|
||||
const releaseArrays = await (clusterContext.hasSelectedAll
|
||||
? requestHelmReleases()
|
||||
: Promise.all(
|
||||
clusterContext.contextNamespaces.map((namespace) =>
|
||||
requestHelmReleases(namespace),
|
||||
),
|
||||
));
|
||||
const releaseArrays = await (
|
||||
clusterContext.hasSelectedAll
|
||||
? requestHelmReleases()
|
||||
: Promise.all(clusterContext.contextNamespaces.map(requestHelmReleases))
|
||||
);
|
||||
|
||||
return releaseArrays.flat().map(toHelmRelease);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user