mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
Fix: wg-easy widget better handle api error (#3768)
This commit is contained in:
parent
5d531b11e7
commit
6ce67b5ab8
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export default function Component({ service }) {
|
||||||
return <Container service={service} error={infoError} />;
|
return <Container service={service} error={infoError} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!infoData) {
|
if (!infoData || infoData.errorCode) {
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="wgeasy.connected" />
|
<Block label="wgeasy.connected" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue