From 069a6907e75a876bf603138b5b04cd697e418f9e Mon Sep 17 00:00:00 2001 From: Chris van Run Date: Tue, 10 Dec 2024 15:45:04 +0100 Subject: [PATCH] Fix not sourcing initial value for JSONEditor field (#3741) A small oversight in the JS. --- app/grandchallenge/core/static/js/jsoneditor_widget.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/grandchallenge/core/static/js/jsoneditor_widget.mjs b/app/grandchallenge/core/static/js/jsoneditor_widget.mjs index f485ad3ae..cda2e03d5 100644 --- a/app/grandchallenge/core/static/js/jsoneditor_widget.mjs +++ b/app/grandchallenge/core/static/js/jsoneditor_widget.mjs @@ -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:",