mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
make portainer error detection more specific
This commit is contained in:
@@ -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 } />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user