From 4c541c692ac2bb6a02019564ff4c786ff7bfa4fd Mon Sep 17 00:00:00 2001 From: Antoine <antoine.roy@tetras-libre.fr> Date: Tue, 9 Jan 2024 12:05:00 +0100 Subject: [PATCH] =?UTF-8?q?console.log=20retir=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AnnotationCreation.js | 2 +- src/WebAnnotation.js | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js index da082e5..4f3a31f 100644 --- a/src/AnnotationCreation.js +++ b/src/AnnotationCreation.js @@ -443,7 +443,7 @@ class AnnotationCreation extends Component { return ( <CompanionWindow - title={title ? title : 'New annotation'} + title={title ? title : 'totos'} windowId={windowId} id={id} > diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index b2fb9c0..d9911a9 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -89,14 +89,7 @@ export default class WebAnnotation { .map((kv) => `${kv[0]}=${kv[1]}`) .join('&'), }); - } - if(target.selector){ - target.selector = selectors.length === 1 ? selectors[0] : selectors; - target = { - selector: target.selector, - source: this.source(), - } - } + }target.selector = selectors.length === 1 ? selectors[0] : selectors; return target; } -- GitLab