Skip to content
Snippets Groups Projects
Commit aa9e049a authored by Antoine Roy's avatar Antoine Roy
Browse files

retrait des console.log

parent 22269079
No related branches found
No related tags found
2 merge requests!15Merge title,!10Draft: MigratingAnnotationCreation to MUI5.
Pipeline #1695 failed
......@@ -107,7 +107,6 @@ class AnnotationCreation extends Component {
annoState.xywh = geomFromAnnoTarget(props.annotation.target);
[annoState.tstart, annoState.tend] = timeFromAnnoTarget(props.annotation.target);
}
console.log(annoState)
}
const toolState = {
......@@ -346,8 +345,6 @@ class AnnotationCreation extends Component {
svg,
tags,
}).toJson();
console.log(this.state.annotation);
console.log(anno);
if (annotation) {
storageAdapter.update(anno)
.then((annoPage) => {
......
......@@ -30,9 +30,7 @@ export default class WebAnnotation {
/** */
createBody() {
let bodies = [];
console.log('CREATEBODY')
if (this.body && this.body.value !== '') {
console.log('TEXT BODY', this.body.value)
const textBody = {
type: 'TextualBody',
value: this.body.value,
......@@ -41,7 +39,6 @@ export default class WebAnnotation {
}
if (this.image) {
console.log('IMAGE', this.image.id)
const imgBody = {
id: this.image.id,
......@@ -51,7 +48,6 @@ export default class WebAnnotation {
}
if(this.title){
console.log('TITLE', this.title)
const title={
type: 'AnnotationTitle',
value: this.title,
......@@ -60,8 +56,6 @@ export default class WebAnnotation {
}
if (this.tags) {
console.log('TAG', this.tags)
bodies = bodies.concat(this.tags.map((tag) => ({
purpose: 'tagging',
type: 'TextualBody',
......@@ -69,10 +63,8 @@ export default class WebAnnotation {
})));
}
if (bodies.length === 1) {
console.log('bodies',bodies)
return bodies[0];
}
console.log('bodies',bodies)
return bodies;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment