don't crash if class isn't a list

This commit is contained in:
FloatingGhost 2023-04-01 07:55:47 +01:00 committed by hynet-mel
parent 86d2553acf
commit e5b226799d

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), '']
}
}