From 572078c2faee6af550e711eb7a32a7520e470127 Mon Sep 17 00:00:00 2001 From: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:53:39 +0200 Subject: [PATCH] Fixed dependency loop when props target self by tags --- .../engine/computation/buildComputation/linkTypeDependencies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/imports/api/engine/computation/buildComputation/linkTypeDependencies.js b/app/imports/api/engine/computation/buildComputation/linkTypeDependencies.js index 10ce0b0a..5a8a5dc0 100644 --- a/app/imports/api/engine/computation/buildComputation/linkTypeDependencies.js +++ b/app/imports/api/engine/computation/buildComputation/linkTypeDependencies.js @@ -175,7 +175,7 @@ function linkEffects(dependencyGraph, prop, computation) { // Returns an array of IDs of the properties the effect targets export function getEffectTagTargets(effect, computation) { let targets = getTargetListFromTags(effect.targetTags, computation); - let notIds = []; + let notIds = [effect._id]; // Can't target itself if (effect.extraTags) { effect.extraTags.forEach(ex => { if (ex.operation === 'OR') {