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:
parent
578d59f454
commit
19f903c0c9
@ -430,7 +430,7 @@ return view.extend({
|
||||
|
||||
return E('div', {}, [
|
||||
this.renderHeader(status),
|
||||
serviceWarning,
|
||||
serviceWarning || E([]),
|
||||
this.renderHealthCheck(),
|
||||
this.renderStatsGrid(stats, decisions),
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user