Skip to content

Commit

Permalink
Fix not sourcing initial value for JSONEditor field (#3741)
Browse files Browse the repository at this point in the history
A small oversight in the JS.
  • Loading branch information
chrisvanrun authored Dec 10, 2024
1 parent 0d10347 commit 069a690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/grandchallenge/core/static/js/jsoneditor_widget.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function initialize_jsoneditor_widget(jsoneditorWidgetID) {

let data;
try {
const data = JSON.parse(jsoneditorWidget.value);
data = JSON.parse(jsoneditorWidget.value);
} catch (err) {
console.warn(
"Could not parse JSON data:",
Expand Down

0 comments on commit 069a690

Please sign in to comment.