From e9bb278fe69731215761a4e3da28bd901069a629 Mon Sep 17 00:00:00 2001 From: yaoshuwei <245646299@qq.com> Date: Wed, 24 Jul 2024 09:43:06 +0800 Subject: [PATCH] Fix: wg-easy widget show o.filter is not a function when wg-easy api return error --- src/widgets/wgeasy/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/wgeasy/component.jsx b/src/widgets/wgeasy/component.jsx index 624002c4f..1b3e0196a 100644 --- a/src/widgets/wgeasy/component.jsx +++ b/src/widgets/wgeasy/component.jsx @@ -15,7 +15,7 @@ export default function Component({ service }) { return ; } - if (!infoData) { + if (!infoData || infoData.errorCode) { return (