Skip to content

Commit

Permalink
fix(pci-common): undefined logs
Browse files Browse the repository at this point in the history
ref: DTCORE-2962
Signed-off-by: Florian Renaut <[email protected]>
  • Loading branch information
frenautvh authored and fredericvilcot committed Jan 9, 2025
1 parent f4940c3 commit 1682ed3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ export function TailLogs({
search,
)?.padStart(6, '')}</span> |`;
logsKeys.forEach((key) => {
result += highlightSearch(` ${message[key]}`, search);
if (message[key] !== undefined) {
result += highlightSearch(` ${message[key]}`, search);
}
});
result += '<br />';
return result;
Expand Down

0 comments on commit 1682ed3

Please sign in to comment.