Change npm widget to use httpProxy not fetch

This commit is contained in:
Michael Shamoon 2022-11-06 14:30:48 -08:00
parent f3a22b057b
commit 319d3bfae3
2 changed files with 68 additions and 14 deletions

View file

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