remove console logs to avoid mess in the console

This commit is contained in:
Julie Lenaerts 2022-03-09 20:07:41 +01:00
parent d6933fce35
commit d5501bcfbd
3 changed files with 1 additions and 8 deletions

View File

@ -11,19 +11,16 @@ const makeFetch = (method, url, body) => {
})
.then(response => {
if (response.ok) {
console.log('200 error')
return response.json();
}
if (response.status === 422) {
console.log('422 error')
return response.json().then(response => {
throw ValidationException(response)
});
}
if (response.status === 403) {
console.log('403 error')
throw AccessException(response);
}

View File

@ -223,7 +223,7 @@ export default {
default:
if (typeof this.type === 'undefined') { // action=create or addContact
console.log('will rewrite data');
console.log('will rewrite data');
if (this.action === 'addContact') {
type = 'thirdparty'
data = this.$refs.castThirdparty.$data.thirdparty;
@ -238,8 +238,6 @@ export default {
throw 'error with object type';
}
}
console.log('type', type);
console.log('data', data);
// pass datas to parent
this.$emit('saveFormOnTheFly', { type: type, data: data });
},

View File

@ -89,11 +89,9 @@ export default {
return this.isMultiline === true ? "div" : "span";
},
multiline() {
//console.log(this.isMultiline, typeof this.isMultiline);
return this.isMultiline === true ? "multiline" : "";
},
isConfidential() {
console.log(this.address.confidential)
return this.address.confidential;
}
}