diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-28 14:12:56 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-28 14:12:56 -0300 |
commit | f7376bb5eb2671de7242872ec0c4615b5e244aba (patch) | |
tree | 1df1c60d380ce6bd8a0414b3acf1c9f86dbb9034 /src/data/things | |
parent | 411c053dc4b314b2bc0d58d3899fd796ad0054c2 (diff) |
data: misc minor fixes
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/composite.js | 6 | ||||
-rw-r--r-- | src/data/things/homepage-layout.js | 1 | ||||
-rw-r--r-- | src/data/things/thing.js | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/src/data/things/composite.js b/src/data/things/composite.js index b6009525..eb93bd7c 100644 --- a/src/data/things/composite.js +++ b/src/data/things/composite.js @@ -976,8 +976,6 @@ export function compositeFrom(description) { const compositionNests = description.compose ?? true; - const exposeDependencies = new Set(); - // Steps default to exposing if using a shorthand syntax where flags aren't // specified at all. const stepsExpose = @@ -1101,7 +1099,6 @@ export function compositeFrom(description) { const stepEntries = stitchArrays({ step: steps, - expose: stepExposeDescriptions, stepComposes: stepsCompose, stepComputes: stepsCompute, stepTransforms: stepsTransform, @@ -1110,7 +1107,6 @@ export function compositeFrom(description) { for (let i = 0; i < stepEntries.length; i++) { const { step, - expose, stepComposes, stepComputes, stepTransforms, @@ -2046,7 +2042,7 @@ export const withPropertiesFromObject = templateCompositeFrom({ '#entries', ], - compute: ({ + compute: (continuation, { [input.staticDependency('object')]: object, [input.staticValue('properties')]: properties, [input.staticValue('prefix')]: prefix, diff --git a/src/data/things/homepage-layout.js b/src/data/things/homepage-layout.js index bade280c..bcf99e80 100644 --- a/src/data/things/homepage-layout.js +++ b/src/data/things/homepage-layout.js @@ -1,7 +1,6 @@ import find from '#find'; import { - compositeFrom, exposeDependency, input, } from '#composite'; diff --git a/src/data/things/thing.js b/src/data/things/thing.js index 290be59b..f1302e17 100644 --- a/src/data/things/thing.js +++ b/src/data/things/thing.js @@ -456,7 +456,7 @@ export function inputWikiData({ allowMixedTypes = false, } = {}) { return input({ - validate: validateWikiData(referenceType), + validate: validateWikiData({referenceType, allowMixedTypes}), acceptsNull: true, }); } |