don't crash if `class` isn't a list
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
FloatingGhost 2023-04-01 07:55:47 +01:00
parent 5911777aa2
commit 14cedc5ed1
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ export default {
break
}
case 'span':
if (this.handleLinks && attrs['class'] && attrs['class'].includes('h-card')) {
if (this.handleLinks && attrs?.['class']?.includes?.('h-card')) {
return ['', children.map(processItem), '']
}
}