From c376293f2f8af76bd8ade38133790ab2246da170 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Wed, 23 Apr 2025 23:33:58 -0700 Subject: [PATCH] always add all artists to subsonic --- src/renderer/api/subsonic/subsonic-controller.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/renderer/api/subsonic/subsonic-controller.ts b/src/renderer/api/subsonic/subsonic-controller.ts index 83515311..d987eafd 100644 --- a/src/renderer/api/subsonic/subsonic-controller.ts +++ b/src/renderer/api/subsonic/subsonic-controller.ts @@ -776,9 +776,10 @@ export const SubsonicController: ControllerEndpoint = { } const final: Array = Array.from(roles).sort(); - if (final.length > 0) { - final.splice(0, 0, { label: 'all artists', value: '' }); - } + // Always add 'all artist' filter, even if there are no other roles + // This is relevant when switching from a server which has roles to one with + // no roles. + final.splice(0, 0, { label: 'all artists', value: '' }); return final; }, getServerInfo: async (args) => {