Fix reporter 'split props' bug

This commit is contained in:
Roma Dziuba 2023-05-25 14:19:28 +02:00
parent e9fa2f582c
commit c5e83d0629
No known key found for this signature in database
GPG key ID: A9B9876A6067C7E4
4 changed files with 102 additions and 1 deletions

View file

@ -19,6 +19,6 @@ export function parseIsoDate(str: string): Date {
}
export function getFirstNonEmptyLine(stackTrace: string): string | undefined {
const lines = stackTrace.split(/\r?\n/g)
const lines = stackTrace ? stackTrace.split(/\r?\n/g) : []
return lines.find(str => !/^\s*$/.test(str))
}