diff --git a/packages/cp-frontend/package.json b/packages/cp-frontend/package.json index 91320367..e6949b06 100644 --- a/packages/cp-frontend/package.json +++ b/packages/cp-frontend/package.json @@ -8,7 +8,7 @@ "scripts": { "dev": "REACT_APP_GQL_PORT=3000 PORT=3069 react-scripts start", "start": "PORT=3069 react-scripts start", - "build": "react-scripts build", + "build": "NODE_ENV=production react-scripts build", "lint:css": "echo 0", "lint:js": "eslint . --fix", "lint": "redrun -s lint:*", diff --git a/packages/cp-frontend/src/containers/services/list.js b/packages/cp-frontend/src/containers/services/list.js index ff67ea62..36317813 100644 --- a/packages/cp-frontend/src/containers/services/list.js +++ b/packages/cp-frontend/src/containers/services/list.js @@ -2,6 +2,8 @@ import React, { Component } from 'react'; import { compose, graphql } from 'react-apollo'; import { connect } from 'react-redux'; import styled from 'styled-components'; +import forceArray from 'force-array'; + import ServicesQuery from '@graphql/Services.gql'; import ServicesRestartMutation from '@graphql/ServicesRestartMutation.gql'; import ServicesStopMutation from '@graphql/ServicesStopMutation.gql'; @@ -45,7 +47,7 @@ class ServiceList extends Component { } = this.props; if ( - loading || + (loading && !forceArray(services).length) || (deploymentGroup.status === 'PROVISIONING' && !services.length) ) { return ( diff --git a/packages/ui-toolkit/.snapguidist/__snapshots__/Card-0.snap b/packages/ui-toolkit/.snapguidist/__snapshots__/Card-0.snap index 35114ca8..d10854b9 100644 --- a/packages/ui-toolkit/.snapguidist/__snapshots__/Card-0.snap +++ b/packages/ui-toolkit/.snapguidist/__snapshots__/Card-0.snap @@ -1,6 +1,6 @@ exports[`Card-0 1`] = `
diff --git a/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-10.snap b/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-10.snap index 29c6c2de..46af1fdd 100644 --- a/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-10.snap +++ b/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-10.snap @@ -7,16 +7,16 @@ exports[`Checkbox-10 1`] = ` className="toggle__InnerContainer-hKefxl bVmJyd" type="checkbox">
@@ -62,19 +62,19 @@ exports[`Checkbox-16 1`] = ` className="Col__Col-hCQanm rqKxU">
diff --git a/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-2.snap b/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-2.snap index c7e0a4f7..8c6e46df 100644 --- a/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-2.snap +++ b/packages/ui-toolkit/.snapguidist/__snapshots__/Checkbox-2.snap @@ -7,16 +7,16 @@ exports[`Checkbox-2 1`] = ` type="checkbox">