mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 22:13:39 +01:00
update to new widgets API error handling
This commit is contained in:
parent
fe4a967a15
commit
3393cbcfc1
@ -12,7 +12,7 @@ export default function Component({ service }) {
|
||||
const { data: channelsData, error: channelsError } = useWidgetAPI(widget, "lineup");
|
||||
|
||||
if (channelsError) {
|
||||
return <Container error={t("widget.api_error")} />;
|
||||
return <Container error={channelsError} />;
|
||||
}
|
||||
|
||||
if (!channelsData) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user