1
0
Fork 0

fix(core): Hide grandchild dependencies

This commit is contained in:
Joost De Cock 2022-09-28 18:33:01 +02:00
parent 5a9a7b2b91
commit 22ed2f62bd

View file

@ -1246,7 +1246,7 @@ Pattern.prototype.__resolveParts = function (count = 0, distance = 0) {
if (part.hideAll) this.__mutated.partHide[part.name] = true
// Inject (from)
if (part.from) {
if (part.hideDependencies) {
if (part.hideDependencies || this.__mutated.partHideAll[name]) {
// Don't mutate the part, keep this info in the pattern object
this.__mutated.partHide[part.from.name] = true
this.__mutated.partHideAll[part.from.name] = true