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 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-01-13 09:46:51 +01:00
parent 578d59f454
commit 19f903c0c9

View File

@ -430,7 +430,7 @@ return view.extend({
return E('div', {}, [
this.renderHeader(status),
serviceWarning,
serviceWarning || E([]),
this.renderHealthCheck(),
this.renderStatsGrid(stats, decisions),