Skip to content

Commit

Permalink
[field] PT: add requirement test
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin authored and rexxars committed Oct 6, 2020
1 parent 53cc39e commit f504097
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function PortableText(props: Props): JSX.Element {
)
}
// Render collected texts inside an annotation
if (annotationSegments.length > 0 && currentAnnotation) {
if (block.children[childIndex] && annotationSegments.length > 0 && currentAnnotation) {
const annotationDiff = findAnnotationDiff(diff.origin, currentAnnotation.mark)
const objectSchemaType =
currentAnnotation &&
Expand Down

0 comments on commit f504097

Please sign in to comment.