make portainer error detection more specific

pull/1579/head
shamoon 1 year ago
parent 91e0ec2f83
commit 0101e8ccb9

@ -23,8 +23,8 @@ export default function Component({ service }) {
); );
} }
if (containersData.error || !Array.isArray(containersData)) { if (containersData.error || containersData.message) {
// containersData can be itself an error object // containersData can be itself an error object e.g. if environment fails
return <Container service={service} error={ containersData?.error ?? containersData } />; return <Container service={service} error={ containersData?.error ?? containersData } />;
} }

Loading…
Cancel
Save