diff options
Diffstat (limited to 'src/data/composite/things/content/hasAnnotationPart.js')
| -rw-r--r-- | src/data/composite/things/content/hasAnnotationPart.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/data/composite/things/content/hasAnnotationPart.js b/src/data/composite/things/content/hasAnnotationPart.js index 83d175e3..93aaf5e5 100644 --- a/src/data/composite/things/content/hasAnnotationPart.js +++ b/src/data/composite/things/content/hasAnnotationPart.js @@ -1,9 +1,5 @@ import {input, templateCompositeFrom} from '#composite'; -import {exposeDependency} from '#composite/control-flow'; - -import withHasAnnotationPart from './withHasAnnotationPart.js'; - export default templateCompositeFrom({ annotation: `hasAnnotationPart`, @@ -14,12 +10,16 @@ export default templateCompositeFrom({ }, steps: () => [ - withHasAnnotationPart({ - part: input('part'), - }), + { + dependencies: [input('part'), 'annotationParts'], - exposeDependency({ - dependency: '#hasAnnotationPart', - }), + compute: ({ + [input('part')]: search, + ['annotationParts']: parts, + }) => + parts.some(part => + part.toLowerCase() === + search.toLowerCase()), + }, ], }); |