diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-14 20:04:18 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-15 20:40:14 -0400 |
commit | 2d5f323bb4da3cdedc5814491f841e4154478f69 (patch) | |
tree | c755de2e4888ddf73b396a0506d8ff3ad8f2b017 /src/data | |
parent | 5a7500688040fc19940adf0e2d0d96a0f75d014b (diff) |
checks, yaml, etc: pass find to filterReferenceErrors
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/checks.js | 1 | ||||
-rw-r--r-- | src/data/yaml.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/data/checks.js b/src/data/checks.js index 8c8e7a5d..cbc4ce0b 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -172,6 +172,7 @@ function getFieldPropertyMessage(yamlDocumentSpec, property) { // any errors). At the same time, we remove errored references from the thing's // data array. export function filterReferenceErrors(wikiData, { + find, bindFind, }) { const referenceSpec = [ diff --git a/src/data/yaml.js b/src/data/yaml.js index 725f4f3a..b2143625 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -1314,6 +1314,7 @@ export function sortWikiDataArrays(dataSteps, wikiData) { // where reporting info about data loading isn't as relevant as during the // main wiki build process. export async function quickLoadAllFromYAML(dataPath, { + find, bindFind, getAllFindSpecs, @@ -1350,7 +1351,7 @@ export async function quickLoadAllFromYAML(dataPath, { } try { - filterReferenceErrors(wikiData, {bindFind}).close(); + filterReferenceErrors(wikiData, {find, bindFind}).close(); logInfo`No reference errors found. (complete data)`; } catch (error) { showAggregate(error); |