diff --git a/packages/cp-frontend/src/containers/service/scale.js b/packages/cp-frontend/src/containers/service/scale.js
index fdc512ad..e4732db6 100644
--- a/packages/cp-frontend/src/containers/service/scale.js
+++ b/packages/cp-frontend/src/containers/service/scale.js
@@ -13,6 +13,7 @@ class ServiceScale extends Component {
if (this.props.loading) {
return ;
}
+
if (this.props.error) {
return (
@@ -46,7 +47,7 @@ class ServiceScale extends Component {
};
const handleSubmitClick = values => {
- scale(service.id, values.replicas);
+ scale(service.id, values.replicas).then(handleCloseClick);
};
return (