From fa8a4548034c359e7843c1d8536e227f7bd74337 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 30 Mar 2018 17:04:54 +0200 Subject: [PATCH] Fix response actions --- UI/Component/Form.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/UI/Component/Form.js b/UI/Component/Form.js index 2312ff1..61934fc 100644 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -218,8 +218,9 @@ try { const o = JSON.parse(xhr.response), response = new jsOMS.Message.Response.Response(o); - let tempResponse = null, - successInject = null; + let successInject = null; + + console.log(response); if (typeof o.status !== 'undefined') { self.app.notifyManager.send( @@ -228,9 +229,9 @@ } if ((successInject = form.getSuccess()) !== null) { - successInject(tempResponse); + successInject(response); } else { - self.app.responseManager.run(tempResponse.type, tempResponse, request); + self.app.responseManager.run(response.get(0).type, response.get(0), request); } } catch (e) { console.log(e);