Add detailed Error component for service widgets

This commit is contained in:
Michael Shamoon 2022-10-22 23:00:51 -07:00
parent 7b7740563e
commit 21017e4716
37 changed files with 113 additions and 113 deletions

View file

@ -13,8 +13,9 @@ export default function Component({ service }) {
all: 1,
});
if (containersError) {
return <Container error={t("widget.api_error")} />;
if (containersError || containersData?.error) {
const finalError = containersError ?? containersData.error;
return <Container error={finalError} />;
}
if (!containersData) {