Skip to content
Snippets Groups Projects
Verified Commit 7338be3a authored by Loïs Poujade's avatar Loïs Poujade
Browse files

wip

parent 1df56527
Branches
Tags
No related merge requests found
......@@ -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",
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment