From 67bd639a432d724bb34b7d6fed76c0bb66d94147 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Sun, 2 Mar 2025 23:46:31 +0100 Subject: [PATCH] fix(emby): throw the right error message if no library exists (#1415) This PR fixes a bug where the error message when no library exists was not displayed because of a Jellyfin-specific check failing with Emby. --- server/routes/settings/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/settings/index.ts b/server/routes/settings/index.ts index 018f7b46..d74d328f 100644 --- a/server/routes/settings/index.ts +++ b/server/routes/settings/index.ts @@ -352,7 +352,7 @@ settingsRoutes.get('/jellyfin/library', async (req, res, next) => { const account = await jellyfinClient.getUser(); // Automatic Library grouping is not supported when user views are used to get library - if (account.Configuration.GroupedFolders.length > 0) { + if (account.Configuration.GroupedFolders?.length > 0) { return next({ status: 501, message: ApiErrorCode.SyncErrorGroupedFolders,