Skip to content

Commit

Permalink
need .value
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 15, 2025
1 parent 587ca65 commit 8f5cd59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/port/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const store = new Store('../../data');

function prepareAnnot() {
try {
let output = JSON.parse(document.getElementById('input'));
let output = JSON.parse(document.getElementById('input').value);
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;
Expand All @@ -14,7 +14,7 @@ function prepareAnnot() {

function saveAnnot() {
try {
let doc = JSON.parse(document.getElementById('output'));
let doc = JSON.parse(document.getElementById('output').value);
} catch (e) {
alert(e);
}
Expand Down

0 comments on commit 8f5cd59

Please sign in to comment.