mirror of
https://github.com/gethomepage/homepage.git
synced 2025-08-07 09:01:23 -04:00
Fix: fix error handling in Portainer Kubernetes widget (#5584)
This commit is contained in:
parent
8c4e73e122
commit
fa2efb1ac9
@ -34,10 +34,10 @@ export default function Component({ service }) {
|
||||
);
|
||||
|
||||
if (widget.kubernetes) {
|
||||
const error = applicationsError ?? servicesError ?? namespacesError;
|
||||
// count can be an error object
|
||||
const error = applicationsError ?? servicesError ?? namespacesError ?? applicationsCount;
|
||||
if (error) {
|
||||
return <Container service={service} error={error} />;
|
||||
if (error || typeof applicationsCount === "object") {
|
||||
return <Container service={service} error={error ?? applicationsCount} />;
|
||||
}
|
||||
|
||||
if (applicationsCount == undefined || servicesCount == undefined || namespacesCount == undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user