Browse Source

Fix error detection in emby widget

Michael Shamoon 2 years ago
parent
commit
b25ba09e18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/widgets/emby/component.jsx

+ 1 - 1
src/widgets/emby/component.jsx

@@ -171,7 +171,7 @@ export default function Component({ service }) {
     });
   }
 
-  if (sessionsError) {
+  if (sessionsError || sessionsData?.error) {
     return <Container error={t("widget.api_error")} />;
   }