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

Fix first edit of images

parent badc56f0
Branches
Tags
1 merge request!98refresh the mosaic on annotation modification
...@@ -1045,7 +1045,7 @@ function openImageEdition(message, tag) { ...@@ -1045,7 +1045,7 @@ function openImageEdition(message, tag) {
let markerArea = new markerjs2.MarkerArea($('#annotation_img_edit')[0]); let markerArea = new markerjs2.MarkerArea($('#annotation_img_edit')[0]);
let imageState; let imageState;
if (tag.getMetadata("Rekall->MarkerjsState").length){ if (tag.getMetadata("Rekall->MarkerjsState") && tag.getMetadata("Rekall->MarkerjsState").trim().length){
imageState = JSON.parse(atob(tag.getMetadata("Rekall->MarkerjsState"))); imageState = JSON.parse(atob(tag.getMetadata("Rekall->MarkerjsState")));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment