From bb518e4ef5901a8a7b853b1e32c5bfbccafdf526 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 23 Apr 2025 14:20:19 +0200 Subject: [PATCH] Clean invalid classname and fix potential TypeError --- www/common/inner/sidebar-layout.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/common/inner/sidebar-layout.js b/www/common/inner/sidebar-layout.js index a356bffaf..21cb9dd7f 100644 --- a/www/common/inner/sidebar-layout.js +++ b/www/common/inner/sidebar-layout.js @@ -189,8 +189,7 @@ define([ const table = h('table.cp-sidebar-table'); if (header) { const headerValues = header.map(value => { - const lastWord = value.split(' ').pop(); // Extracting the last word - return h('th', { class: lastWord.toLowerCase() }, value); // Modified to use the last word + return h('th', value); }); const headerRow = h('thead', h('tr', headerValues)); table.appendChild(headerRow);