From cc6c9910903760c64f92c048d52f16d2f253b790 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Tue, 15 Jul 2025 21:27:32 +0200 Subject: [PATCH] fix graph list --- templates/admin/followup_graph.html.twig | 2 +- templates/admin/followup_theme_graph.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/admin/followup_graph.html.twig b/templates/admin/followup_graph.html.twig index 7243954..70446f5 100644 --- a/templates/admin/followup_graph.html.twig +++ b/templates/admin/followup_graph.html.twig @@ -175,7 +175,7 @@ const series = {{ series|json_encode|raw }}; const followupIcons = {{ followup_icons|json_encode|raw }}; const typeLabels = Object.assign({}, {{ followup_labels|json_encode|raw }}); - const ctcCompletionSeries = {% if ctc_completion_series is defined %}{{ ctc_completion_series|json_encode|raw }} {% endif %} | []; + const ctcCompletionSeries = {% if ctc_completion_series is defined %}{{ ctc_completion_series|json_encode|raw }} {% else %} []{% endif %}; document.addEventListener('DOMContentLoaded', function() { Object.keys(typeLabels).forEach(function(baseType) { const countData = (series[baseType + '_count'] || []).map(pt => ({ x: pt.date, y: pt.value })); diff --git a/templates/admin/followup_theme_graph.html.twig b/templates/admin/followup_theme_graph.html.twig index 865e43e..ba81f14 100644 --- a/templates/admin/followup_theme_graph.html.twig +++ b/templates/admin/followup_theme_graph.html.twig @@ -481,8 +481,8 @@