From ed1806e17b4d660d53bba14e631eaffa8323a6d7 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 21 Sep 2020 01:56:18 +0200 Subject: [PATCH] Frontend: Revert change in session.js Signed-off-by: Michael Mayer --- frontend/src/common/session.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/frontend/src/common/session.js b/frontend/src/common/session.js index f7915e714..3f290f2f1 100644 --- a/frontend/src/common/session.js +++ b/frontend/src/common/session.js @@ -207,13 +207,10 @@ export default class Session { return Api.post("session", {username, password, token}).then( (resp) => { - return new Promise(resolve => { - this.setConfig(resp.data.config); - this.setId(resp.data.id); - this.setData(resp.data.data); - this.sendClientInfo(); - resolve(); - }); + this.setConfig(resp.data.config); + this.setId(resp.data.id); + this.setData(resp.data.data); + this.sendClientInfo(); } ); }