From 308079319c9b8d242401f8ac9e09effc09d3461b Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Mon, 3 Jul 2023 13:28:34 +0200 Subject: [PATCH] Fix result table editing [SCI-8774] --- app/assets/javascripts/results/result_tables.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/results/result_tables.js.erb b/app/assets/javascripts/results/result_tables.js.erb index b8a9b680b..93450177e 100644 --- a/app/assets/javascripts/results/result_tables.js.erb +++ b/app/assets/javascripts/results/result_tables.js.erb @@ -8,7 +8,7 @@ var $container = $(this).find('.hot'); var data = null; var contents = $(this).find('.hot-contents'); - var metadata = JSON.parse($(this).find('.hot-metadata').val() || '{}'); + var metadata = $(this).find('.hot-metadata').val() || {}; if (contents.attr('value')) { data = JSON.parse(contents.attr('value')).data; }