make portainer error detection more specific
This commit is contained in:
parent
91e0ec2f83
commit
0101e8ccb9
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ export default function Component({ service }) {
|
|||
);
|
||||
}
|
||||
|
||||
if (containersData.error || !Array.isArray(containersData)) {
|
||||
// containersData can be itself an error object
|
||||
if (containersData.error || containersData.message) {
|
||||
// containersData can be itself an error object e.g. if environment fails
|
||||
return <Container service={service} error={ containersData?.error ?? containersData } />;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue