diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-01-10 23:39:15 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-01-10 23:39:15 -0400 |
commit | 9f81a9395a68e7f1c00e4e0340911c09975eded3 (patch) | |
tree | d52a7a8431bc36036090e76be9b187509ee57368 /src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js | |
parent | 691ae4b3019c37c150eb27f077ad398ca835765f (diff) |
data: annotatedReferenceList: gobble + tolerate null data
Diffstat (limited to 'src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js')
-rw-r--r-- | src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js b/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js index 789a8844..dc16f242 100644 --- a/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js +++ b/src/data/composite/wiki-data/withResolvedAnnotatedReferenceList.js @@ -10,6 +10,7 @@ import { withAvailabilityFilter, } from '#composite/control-flow'; +import inputSoupyFind from './inputSoupyFind.js'; import inputNotFoundMode from './inputNotFoundMode.js'; import inputWikiData from './inputWikiData.js'; import raiseResolvedReferenceList from './raiseResolvedReferenceList.js'; @@ -34,7 +35,7 @@ export default templateCompositeFrom({ thing: input({type: 'string', defaultValue: 'thing'}), data: inputWikiData({allowMixedTypes: true}), - find: input({type: 'function'}), + find: inputSoupyFind(), notFoundMode: inputNotFoundMode(), }, @@ -42,11 +43,6 @@ export default templateCompositeFrom({ outputs: ['#resolvedAnnotatedReferenceList'], steps: () => [ - exitWithoutDependency({ - dependency: input('data'), - value: input.value([]), - }), - raiseOutputWithoutDependency({ dependency: input('list'), mode: input.value('empty'), |