Skip to content

Commit

Permalink
Merge pull request #1071 from camicroscope/fix-port-xml
Browse files Browse the repository at this point in the history
template and closure fixes to port
  • Loading branch information
birm authored Jan 15, 2025
2 parents a31e868 + e085559 commit 722a9b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/port/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ function prepareAnnot() {
output['provenance']['image']['slide'] = document.getElementById('slide_id').value;
output['provenance']['analysis']['execution'] = document.getElementById('annot_name').value;
output['properties']['annotations']['name'] = document.getElementById('annot_name').value;
output['provenance']['analysis']['name'] = document.getElementById('annot_name').value;
output['provenance']['analysis']['execution_id'] = document.getElementById('annot_name').value;
} catch (e) {
alert(e);
}
Expand All @@ -15,8 +17,8 @@ function prepareAnnot() {
function saveAnnot() {
try {
let doc = JSON.parse(document.getElementById('output').value);
store.addMark(doc).then((x)=>alert('done!')).catch((e)=>alert(e));
} catch (e) {
alert(e);
}
store.addMark(doc).then((x)=>alert('done!')).catch((e)=>alert(e));
}

0 comments on commit 722a9b9

Please sign in to comment.