mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
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) {
|
const _err = error ? (
|
||||||
return (
|
<ErrorMessage
|
||||||
<LayoutContainer>
|
title="Ooops!"
|
||||||
<ErrorMessage
|
message="An error occurred while loading your services."
|
||||||
title="Ooops!"
|
/>
|
||||||
message="An error occurred while loading your services."
|
) : null;
|
||||||
/>
|
|
||||||
</LayoutContainer>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
deploymentGroup &&
|
deploymentGroup &&
|
||||||
@ -115,9 +111,7 @@ export class ServiceList extends Component {
|
|||||||
: '';
|
: '';
|
||||||
|
|
||||||
renderedError = (
|
renderedError = (
|
||||||
<LayoutContainer>
|
<ErrorMessage title="Ooops!" message={message} />
|
||||||
<ErrorMessage title="Ooops!" message={message} />
|
|
||||||
</LayoutContainer>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +142,7 @@ export class ServiceList extends Component {
|
|||||||
return (
|
return (
|
||||||
<LayoutContainer>
|
<LayoutContainer>
|
||||||
{renderedError}
|
{renderedError}
|
||||||
|
{_err}
|
||||||
<StyledContainer>{serviceList}</StyledContainer>
|
<StyledContainer>{serviceList}</StyledContainer>
|
||||||
</LayoutContainer>
|
</LayoutContainer>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user