diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-10-15 23:53:15 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-02 22:12:49 -0300 |
commit | c7b08a3f9dee2be7cd1d3798315b35fdfd6d80f9 (patch) | |
tree | 92460a3366c4899d7a93ed19b670da0d41bd96c9 /src/data/composite/wiki-properties/seriesList.js | |
parent | 7c8abdbb551a05b0d9083bf13a7d82b22b866566 (diff) |
data: seriesList: expose group
Diffstat (limited to 'src/data/composite/wiki-properties/seriesList.js')
-rw-r--r-- | src/data/composite/wiki-properties/seriesList.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/data/composite/wiki-properties/seriesList.js b/src/data/composite/wiki-properties/seriesList.js index aadd56c8..2a101b45 100644 --- a/src/data/composite/wiki-properties/seriesList.js +++ b/src/data/composite/wiki-properties/seriesList.js @@ -1,5 +1,5 @@ import {input, templateCompositeFrom} from '#composite'; -import {isSeriesList} from '#validators'; +import {isSeriesList, validateThing} from '#validators'; import {exposeDependency} from '#composite/control-flow'; import {withResolvedSeriesList} from '#composite/wiki-data'; @@ -9,8 +9,16 @@ export default templateCompositeFrom({ compose: false, + inputs: { + group: input({ + validate: validateThing({referenceType: 'group'}), + }), + }, + steps: () => [ withResolvedSeriesList({ + group: input('group'), + list: input.updateValue({ validate: isSeriesList, }), |