forked from mystiq/hydrogen-web
null doesn't set queryParams to {} here, so revert explicitly
This commit is contained in:
parent
174fd3ea4a
commit
f826258c75
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue