fix undefined / null parameter string for Subsonic (#1978)

This commit is contained in:
jeffvli
2026-04-28 21:17:44 -07:00
parent 6be5818493
commit ac0c074d4b
+11 -1
View File
@@ -376,6 +376,16 @@ axiosClient.interceptors.response.use(
},
);
const keysToSkipEmptyCheck = new Set([
'artist',
'comment',
'genre',
'name',
'query',
'u',
'username',
]);
const parsePath = (fullPath: string) => {
const [path, params] = fullPath.split('?');
@@ -383,7 +393,7 @@ const parsePath = (fullPath: string) => {
const notNilParams: Record<string, string[]> = {};
for (const [key, value] of url) {
if (value === 'undefined' || value === 'null') {
if (!keysToSkipEmptyCheck.has(key) && (value === 'undefined' || value === 'null')) {
continue;
}