1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Check for empty argument in querystring

This commit is contained in:
Cromefire_ 2020-06-06 11:27:54 +02:00
parent d36a8994fb
commit e4e42bfee0
No known key found for this signature in database
GPG key ID: D3D3DB179F435F0C

View file

@ -82,7 +82,7 @@
function paramsToString(params) {
return Object.entries(params)
// eslint-disable-next-line no-unused-vars
.filter(([_, v]) => v !== null && v !== undefined)
.filter(([_, v]) => v !== null && v !== undefined && v !== '')
.map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`)
.join('&');
}