From 21df6b4c57b5b2b12c5a3aee9ab05d0c53366339 Mon Sep 17 00:00:00 2001 From: Florian Renaut Date: Thu, 9 Jan 2025 09:32:56 +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 7b61568028d6..997a4ab41fed 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 @@ -74,7 +74,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;