diff --git a/app/views/application/_analytical_fire_events.html.erb b/app/views/application/_analytical_fire_events.html.erb index 5ac358c..523f69b 100644 --- a/app/views/application/_analytical_fire_events.html.erb +++ b/app/views/application/_analytical_fire_events.html.erb @@ -2,7 +2,7 @@ var commands; try { - commands = $.parseJSON(decodeURIComponent(($.cookie('analytical') || '').replace(/\+/g, '%20'))) || []; + commands = $.parseJSON(decodeURIComponent(($.cookie('analytical') || '').replace(/\+/g, '%20')) || '[]'); } catch(e) { commands = []; }