diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-01-11 00:11:37 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-01-11 00:11:37 -0400 |
commit | 9d99dafca9dc4e16b867b707746314040a8d9ba5 (patch) | |
tree | 6928b4efcaeac5508d06c74ac3bfeefce0ce4b7d /src/data/composite/things/track/withOriginalRelease.js | |
parent | 8bbd9ac0b5cf8cc64ccbae7ae16b23f05d93d880 (diff) |
data: use soupyFind everywhere
also notes where remaining directly-provided wikiData() props are used
Diffstat (limited to 'src/data/composite/things/track/withOriginalRelease.js')
-rw-r--r-- | src/data/composite/things/track/withOriginalRelease.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/data/composite/things/track/withOriginalRelease.js b/src/data/composite/things/track/withOriginalRelease.js index c7f49657..59302eac 100644 --- a/src/data/composite/things/track/withOriginalRelease.js +++ b/src/data/composite/things/track/withOriginalRelease.js @@ -11,18 +11,13 @@ import {validateWikiData} from '#validators'; import {exitWithoutDependency, withResultOfAvailabilityCheck} from '#composite/control-flow'; import {withResolvedReference} from '#composite/wiki-data'; +import {soupyFind} from '#composite/wiki-properties'; export default templateCompositeFrom({ annotation: `withOriginalRelease`, inputs: { selfIfOriginal: input({type: 'boolean', defaultValue: false}), - - data: input({ - validate: validateWikiData({referenceType: 'track'}), - defaultDependency: 'trackData', - }), - notFoundValue: input({defaultValue: null}), }, @@ -55,8 +50,7 @@ export default templateCompositeFrom({ withResolvedReference({ ref: 'originalReleaseTrack', - data: input('data'), - find: input.value(find.track), + find: soupyFind.input('track'), }), exitWithoutDependency({ |