Fixed dependency loop when props target self by tags

This commit is contained in:
ThaumRystra
2023-09-22 15:53:39 +02:00
parent 7754482da7
commit 572078c2fa

View File

@@ -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') {