1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

found another place to refactor

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-09-29 10:24:13 -04:00
parent 98835758c4
commit a803ab5436

View File

@ -12,8 +12,7 @@ export class ReplicaSetStore extends KubeObjectStore<ReplicaSet> {
async loadMetrics(replicaSet: ReplicaSet) {
const pods = this.getChildPods(replicaSet);
const metrics = await podsApi.getMetrics(pods, replicaSet.getNs(), "");
return this.metrics = metrics;
this.metrics = await podsApi.getMetrics(pods, replicaSet.getNs(), "");
}
getChildPods(replicaSet: ReplicaSet) {