mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 06:48:47 +00:00
Change npm widget to use httpProxy not fetch
This commit is contained in:
parent
f3a22b057b
commit
319d3bfae3
2 changed files with 68 additions and 14 deletions
|
@ -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")} />;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue