feat(cp-frontend): show service list even when error

This commit is contained in:
Sérgio Ramos 2017-08-30 11:57:08 +01:00
parent 666a9ad1e8
commit 9b647a77eb

View File

@ -59,16 +59,12 @@ export class ServiceList extends Component {
);
}
if (error) {
return (
<LayoutContainer>
const _err = error ? (
<ErrorMessage
title="Ooops!"
message="An error occurred while loading your services."
/>
</LayoutContainer>
);
}
) : null;
if (
deploymentGroup &&
@ -115,9 +111,7 @@ export class ServiceList extends Component {
: '';
renderedError = (
<LayoutContainer>
<ErrorMessage title="Ooops!" message={message} />
</LayoutContainer>
);
}
@ -148,6 +142,7 @@ export class ServiceList extends Component {
return (
<LayoutContainer>
{renderedError}
{_err}
<StyledContainer>{serviceList}</StyledContainer>
</LayoutContainer>
);