Skip to content

Commit

Permalink
[field] PT: safety-measure for segment creation
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin authored and rexxars committed Oct 6, 2020
1 parent dc4d024 commit 8eba031
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function blockToSymbolizedText(
}
return block.children
.map(child => {
let returned = child.text || ''
let returned = child.text?.replace(symbolRegex, '') || ''
if (child._type !== 'span') {
returned = inlineMap[child._key]
} else if (child.marks) {
Expand Down

0 comments on commit 8eba031

Please sign in to comment.