diff --git a/package-lock.json b/package-lock.json index d89e5d0a5ebeca69f4fcdb1dff36639ad60cc54e..d925ea42129a5afff748c33cc4cc63d2aa36af3a 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 6c35a913091010d2c719fb25506cb086dc88a3b7..7346dcbddc7bda4b07901ca21df0083a6f4c90fd 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); }