diff --git a/src/renderer/api/endpoints/deployment.api.ts b/src/renderer/api/endpoints/deployment.api.ts index 0b6230ab99..25164e10f9 100644 --- a/src/renderer/api/endpoints/deployment.api.ts +++ b/src/renderer/api/endpoints/deployment.api.ts @@ -10,7 +10,7 @@ export class DeploymentApi extends KubeApi { getReplicas(params: { namespace: string; name: string }): Promise { return this.request .get(this.getScaleApiUrl(params)) - .then(({ status }: any) => status.replicas) + .then(({ status }: any) => status?.replicas) } scale(params: { namespace: string; name: string }, replicas: number) {