Change npm widget to use httpProxy not fetch
This commit is contained in:
1 parent
f3a22b057b
commit
319d3bfae3
2 files changed
+68
-14
No files matched your search
@@ -11,7 +11,7 @@ export default function Component({ service }) {
|
||||
|
||||
const { data: infoData, error: infoError } = useWidgetAPI(widget, "nginx/proxy-hosts");
|
||||
|
||||
if (infoError) {
|
||||
if (infoError || infoData?.error) {
|
||||
return <Container error={t("widget.api_error")} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user