Frontend: Revert change in session.js

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-09-21 01:56:18 +02:00
parent 33156b5bd7
commit ed1806e17b

View file

@ -207,13 +207,10 @@ export default class Session {
return Api.post("session", {username, password, token}).then( return Api.post("session", {username, password, token}).then(
(resp) => { (resp) => {
return new Promise(resolve => {
this.setConfig(resp.data.config); this.setConfig(resp.data.config);
this.setId(resp.data.id); this.setId(resp.data.id);
this.setData(resp.data.data); this.setData(resp.data.data);
this.sendClientInfo(); this.sendClientInfo();
resolve();
});
} }
); );
} }