From 7338be3a4d2659b377649c8c592fdcfe2d760bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Poujade?= <lois.poujade@tetras-libre.fr> Date: Mon, 28 Nov 2022 09:29:31 +0100 Subject: [PATCH] wip --- package-lock.json | 2 +- src/WebAnnotation.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index d89e5d0..d925ea4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "eslint-plugin-flowtype": "^5.6.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-jest": "^23.18.0", - "eslint-plugin-jsx-a11y": "^6.3.1", + "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.20.3", "jest": "^26.1.0", "jest-canvas-mock": "^2.2.0", diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index 6c35a91..7346dcb 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -36,7 +36,7 @@ export default class WebAnnotation { createBody() { let bodies = []; - if (this.body && this.body.value != '') { + if (this.body && this.body.value !== '') { const textBody = { type: 'TextualBody', value: this.body.value, @@ -46,9 +46,9 @@ export default class WebAnnotation { if (this.image) { const imgBody = { - type: 'Image', - id: this.image.url, format: 'image/jpg', + id: this.image.url, + type: 'Image', }; bodies.push(imgBody); } -- GitLab