diff options
Diffstat (limited to 'src/data/composite/things/content')
-rw-r--r-- | src/data/composite/things/content/withAnnotationParts.js | 1 | ||||
-rw-r--r-- | src/data/composite/things/content/withSourceText.js | 4 | ||||
-rw-r--r-- | src/data/composite/things/content/withSourceURLs.js | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/data/composite/things/content/withAnnotationParts.js b/src/data/composite/things/content/withAnnotationParts.js index 5eb8e3d5..6311b57a 100644 --- a/src/data/composite/things/content/withAnnotationParts.js +++ b/src/data/composite/things/content/withAnnotationParts.js @@ -1,5 +1,4 @@ import {input, templateCompositeFrom} from '#composite'; -import {parseContentNodes} from '#replacer'; import {transposeArrays} from '#sugar'; import {is} from '#validators'; diff --git a/src/data/composite/things/content/withSourceText.js b/src/data/composite/things/content/withSourceText.js index e0cd2f15..292306b7 100644 --- a/src/data/composite/things/content/withSourceText.js +++ b/src/data/composite/things/content/withSourceText.js @@ -1,5 +1,4 @@ import {input, templateCompositeFrom} from '#composite'; -import {parseContentNodes} from '#replacer'; import {raiseOutputWithoutDependency} from '#composite/control-flow'; @@ -28,7 +27,8 @@ export default templateCompositeFrom({ ['#firstPartWithExternalLink']: annotationParts .find(nodes => nodes - .some(node => node.type === 'external-link')), + .some(node => node.type === 'external-link')) ?? + null, }), }, diff --git a/src/data/composite/things/content/withSourceURLs.js b/src/data/composite/things/content/withSourceURLs.js index 263eb5f6..f85ff9ea 100644 --- a/src/data/composite/things/content/withSourceURLs.js +++ b/src/data/composite/things/content/withSourceURLs.js @@ -1,5 +1,4 @@ import {input, templateCompositeFrom} from '#composite'; -import {parseContentNodes} from '#replacer'; import {raiseOutputWithoutDependency} from '#composite/control-flow'; import {withFilteredList, withMappedList} from '#composite/data'; @@ -29,7 +28,8 @@ export default templateCompositeFrom({ ['#firstPartWithExternalLink']: annotationParts .find(nodes => nodes - .some(node => node.type === 'external-link')), + .some(node => node.type === 'external-link')) ?? + null, }), }, |