From 41a901f3c4f04834d1e5a4fc279a327d0d965acb Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 7 Jun 2023 01:10:24 -0700 Subject: [PATCH] Catch error on jellyfin query fail --- src/renderer/features/lyrics/queries/lyric-query.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/renderer/features/lyrics/queries/lyric-query.ts b/src/renderer/features/lyrics/queries/lyric-query.ts index 8cc8f2a2..1983b043 100644 --- a/src/renderer/features/lyrics/queries/lyric-query.ts +++ b/src/renderer/features/lyrics/queries/lyric-query.ts @@ -85,10 +85,12 @@ export const useSongLyrics = ( } if (server.type === ServerType.JELLYFIN) { - const jfLyrics = await api.controller.getLyrics({ - apiClientProps: { server, signal }, - query: { songId: song.id }, - }); + const jfLyrics = await api.controller + .getLyrics({ + apiClientProps: { server, signal }, + query: { songId: song.id }, + }) + .catch((err) => console.log(err)); if (jfLyrics) { return {