Merge pull request #4966 from Dokploy/fix/requests-hostname-filter-crash

fix(requests): guard RequestHost before filtering to avoid crash on malformed logs

(cherry picked from commit a0162ab566)
This commit is contained in:
Mauricio Siu
2026-08-05 23:48:05 -06:00
committed by Mauricio Siu
parent 112b2c8358
commit 3e4ed0c299
2 changed files with 23 additions and 1 deletions
@@ -120,7 +120,7 @@ export function parseRawConfig(
if (search) {
parsedLogs = parsedLogs.filter((log) =>
log.RequestHost.toLowerCase().includes(search.toLowerCase()),
(log.RequestHost ?? "").toLowerCase().includes(search.toLowerCase()),
);
}