Skip to content

Commit

Permalink
hasModifier should check parent edges if any of them modifies the child
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Jul 6, 2023
1 parent 701a518 commit d7bc1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/functions/src/dedup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ function hasModifier(prop: Property, cache: Map<Property, boolean>): boolean {

const graph = prop.getGraph();
const visitedNodes = new Set<Property>();
const edgeQueue = graph.listChildEdges(prop);
const edgeQueue = graph.listParentEdges(prop);

// Search dependency subtree for 'modifyChild' attribute.
while (edgeQueue.length > 0) {
Expand Down

0 comments on commit d7bc1ee

Please sign in to comment.