diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-05-06 10:04:52 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-06 10:04:52 -0300 |
commit | 1d5513d02d23034aff3bd043a1e2e6755abcb93d (patch) | |
tree | a6fc9b61d75e62d70dc44924d44df88df836acc5 /src | |
parent | 6ef934d9941f049c256832249816bb8a970121fb (diff) |
data-checks: filterDuplicateDirectoroies: skip missing thingData
Diffstat (limited to 'src')
-rw-r--r-- | src/data/checks.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/data/checks.js b/src/data/checks.js index c0eba0ff..fe4528e8 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -37,7 +37,9 @@ export function reportDuplicateDirectories(wikiData, { const directoryPlaces = Object.create(null); const duplicateDirectories = new Set(); + const thingData = wikiData[findSpec.bindTo]; + if (!thingData) continue; for (const thing of thingData) { if (findSpec.include && !findSpec.include(thing)) { |