remove parse from api response

This commit is contained in:
Eduardo humberto 2017-12-19 16:23:17 -02:00
parent 16dd7bfc4d
commit 5d2f121159
1 changed files with 1 additions and 2 deletions

View File

@ -18,9 +18,8 @@ export const eventBus = new Vue({
if ( event.detail[0] ){
const promisse = this.$store.dispatch('item/sendMetadata', event.detail[0] );
promisse.then( response => {
const parsedResponse = JSON.parse( response );
eventElement.errorsMsg = JSON.stringify( [] );
eventElement.value = parsedResponse.value;
eventElement.value = response.value;
}, error => {
const metadata = this.errors.find(error => error.metadata_id === event.detail[0].metadata_id );
eventElement.errorsMsg = JSON.stringify( metadata.error );