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,