fix(bankEntity): was not sending back the data id
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
c9cda92fbf
commit
deb085ce9f
|
@ -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!')));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue