From c38a6bb7e1cd5b9f234ec898c1760d087aa901b7 Mon Sep 17 00:00:00 2001 From: Florian Renaut Date: Thu, 9 Jan 2025 10:24:55 +0100 Subject: [PATCH] fix(pci-common): undefined logs ref: DTCORE-2962 Signed-off-by: Florian Renaut --- .../src/components/logs/TailLogs.component.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/manager/modules/manager-pci-common/src/components/logs/TailLogs.component.tsx b/packages/manager/modules/manager-pci-common/src/components/logs/TailLogs.component.tsx index 55b189f896a2..101f99446be9 100644 --- a/packages/manager/modules/manager-pci-common/src/components/logs/TailLogs.component.tsx +++ b/packages/manager/modules/manager-pci-common/src/components/logs/TailLogs.component.tsx @@ -69,7 +69,9 @@ export function TailLogs({ search, )?.padStart(6, '')} |`; logsKeys.forEach((key) => { - result += highlightSearch(` ${message[key]}`, search); + if (message[key] !== undefined) { + result += highlightSearch(` ${message[key]}`, search); + } }); result += '
'; return result;