diff --git a/app/imports/api/creature/actions/applyProperties.js b/app/imports/api/creature/actions/applyProperties.js index 7d657374..c078f87a 100644 --- a/app/imports/api/creature/actions/applyProperties.js +++ b/app/imports/api/creature/actions/applyProperties.js @@ -62,7 +62,7 @@ function applyPropertyAndWalkChildren({prop, child, targets, ...options}){ export default function applyProperties({ forest, targets, ...options}){ forest.forEach(child => { let prop = child.node; - if (shouldSplit(prop)){ + if (shouldSplit(prop) && targets.length){ targets.forEach(target => { let targets = [target] applyPropertyAndWalkChildren({ targets, prop, child, ...options});