From 94ea413c58764061385f2d6e6eace04c7d5a17a2 Mon Sep 17 00:00:00 2001
From: Antoine <antoine.roy@tetras-libre.fr>
Date: Thu, 11 Jan 2024 12:11:21 +0100
Subject: [PATCH] =?UTF-8?q?Correctif=20:=20Les=20formes=20et=20les=20timin?=
 =?UTF-8?q?gs=20des=20annotations=20n'=C3=A9tait=20pas=20correctement=20re?=
 =?UTF-8?q?ndu=20=C3=A0=20l'ouverture=20de=20l'annotation?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/AnnotationCreation.js | 2 --
 src/WebAnnotation.js      | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js
index dbd0b53..f218754 100644
--- a/src/AnnotationCreation.js
+++ b/src/AnnotationCreation.js
@@ -135,12 +135,10 @@ class AnnotationCreation extends Component {
       lineWeightPopoverOpen: false,
       popoverAnchorEl: null,
       popoverLineWeightAnchorEl: null,
-      svg: null,
       textBody: '',
       textEditorStateBustingKey: 0,
       // eslint-disable-next-line sort-keys,max-len
       valueTime: [0, 1],
-      xywh: null,
       ...annoState,
       valuetextTime: '',
       mediaVideo: null,
diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js
index c140364..55a4d80 100644
--- a/src/WebAnnotation.js
+++ b/src/WebAnnotation.js
@@ -88,7 +88,8 @@ export default class WebAnnotation {
           .map((kv) => `${kv[0]}=${kv[1]}`)
           .join('&'),
       });
-    }target.selector = selectors.length === 1 ? selectors[0] : selectors;
+    }
+    target.selector = selectors.length === 1 ? selectors[0] : selectors;
     return target;
   }
 
-- 
GitLab