From deb085ce9f0d1db0fa56785930c7fb536e31a849 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 21 Sep 2021 08:43:21 +0200 Subject: [PATCH] fix(bankEntity): was not sending back the data id --- front/salix/components/bank-entity/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/front/salix/components/bank-entity/index.js b/front/salix/components/bank-entity/index.js index d4ac8030a..261018017 100644 --- a/front/salix/components/bank-entity/index.js +++ b/front/salix/components/bank-entity/index.js @@ -11,6 +11,7 @@ class Controller extends Dialog { throw new Error(`The country can't be empty`); return this.$http.post(`bankEntities`, this.data) + .then(res => this.data.id = res.data.id) .then(() => super.responseHandler(response)) .then(() => this.vnApp.showSuccess(this.$t('Data saved!'))); }