mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-11 03:12:07 +08:00
Change npm widget to use httpProxy not fetch
This commit is contained in:
@@ -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