From 19f903c0c93656f7858c167c0ee1a6fc5aace797 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Tue, 13 Jan 2026 09:46:51 +0100 Subject: [PATCH] fix(crowdsec-dashboard): Remove "null" text when service is running The serviceWarning variable was null when CrowdSec is running, and LuCI's E() function rendered it as literal "null" text. Fixed by using empty fragment when no warning needed. Co-Authored-By: Claude Opus 4.5 --- .../luci-static/resources/view/crowdsec-dashboard/overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/overview.js b/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/overview.js index fa91dc65..ce162a77 100644 --- a/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/overview.js +++ b/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/overview.js @@ -430,7 +430,7 @@ return view.extend({ return E('div', {}, [ this.renderHeader(status), - serviceWarning, + serviceWarning || E([]), this.renderHealthCheck(), this.renderStatsGrid(stats, decisions),