From c7b08a3f9dee2be7cd1d3798315b35fdfd6d80f9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 15 Oct 2024 23:53:15 -0300 Subject: data: seriesList: expose group --- src/data/composite/wiki-properties/seriesList.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/data/composite/wiki-properties/seriesList.js') 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, }), -- cgit 1.3.0-6-gf8a5