Small improvement to docs generation

This commit is contained in:
pietervdvn 2022-02-27 20:49:19 +01:00
parent cf39a55019
commit c877927645

View file

@ -367,7 +367,7 @@ export default class LayerConfig extends WithContextLoader {
extraProps.push(new Combine(["This layer will automatically load ", new Link(dep.neededLayer, "./" + dep.neededLayer + ".md"), " into the layout as it depends on it: ", dep.reason, "(" + dep.context + ")"]))
}
for (const revDep of layerIsNeededBy?.get(this.id) ?? []) {
for (const revDep of Utils.Dedup( layerIsNeededBy?.get(this.id) ?? [])) {
extraProps.push(new Combine(["This layer is needed as dependency for layer", new Link(revDep, "#" + revDep)]))
}