feat(cp-frontend): show service list even when error
This commit is contained in:
parent
666a9ad1e8
commit
9b647a77eb
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user