mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
null doesn't set queryParams to {} here, so revert explicitly
This commit is contained in:
parent
174fd3ea4a
commit
f826258c75
@ -43,8 +43,8 @@ export class HomeServerApi {
|
||||
return `${this._homeserver}/_matrix/client/r0${csPath}`;
|
||||
}
|
||||
|
||||
_request(method, url, queryParams = {}, body, options) {
|
||||
const queryString = Object.entries(queryParams)
|
||||
_request(method, url, queryParams, body, options) {
|
||||
const queryString = Object.entries(queryParams || {})
|
||||
.filter(([, value]) => value !== undefined)
|
||||
.map(([name, value]) => {
|
||||
if (typeof value === "object") {
|
||||
|
Loading…
Reference in New Issue
Block a user