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; }