This commit is contained in:
Bruno Windels 2019-05-12 20:26:20 +02:00
parent 75100c1c60
commit da5e8794ab

View file

@ -33,7 +33,7 @@ export default class HomeServerApi {
_request(method, csPath, queryParams = {}, body) {
const queryString = Object.entries(queryParams)
.filter(([name, value]) => value !== undefined)
.filter(([, value]) => value !== undefined)
.map(([name, value]) => `${encodeURIComponent(name)}=${encodeURIComponent(value)}`)
.join("&");
const url = this._url(`${csPath}?${queryString}`);