1
0
mirror of https://github.com/karl0ss/homepage.git synced 2025-05-21 13:26:20 +01:00

make portainer error detection more specific

This commit is contained in:
shamoon 2023-06-08 09:40:20 -07:00
parent 91e0ec2f83
commit 0101e8ccb9

@ -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 } />;
}