diff --git a/src/plugins/logs/index.js b/src/plugins/logs/index.js index 38a349782..b5d95243f 100644 --- a/src/plugins/logs/index.js +++ b/src/plugins/logs/index.js @@ -58,6 +58,9 @@ const Icon = styled(Glyph)({ function getLineCount(str: string): number { let count = 1; + if (!(typeof str === 'string')) { + return 0; + } for (let i = 0; i < str.length; i++) { if (str[i] === '\n') { count++;