From f826258c75e9e9490a3ad0048d5144190a8c6321 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 22 Apr 2020 20:47:53 +0200 Subject: [PATCH] null doesn't set queryParams to {} here, so revert explicitly --- src/matrix/net/HomeServerApi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index 6454a2a2..65deff2e 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -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") {