Compare commits

..

2 Commits

Author SHA1 Message Date
Stefan Zermatten
612fcca68c Only split properties accross targets if there are targets 2021-02-22 14:30:50 +02:00
Stefan Zermatten
12939c46de made saves walk children when not targeted at self 2021-02-22 14:28:38 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -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});

View File

@@ -69,6 +69,7 @@ export default function applySave({
return !saveSuccess;
} else {
// TODO
return true;
}
} catch (e){
log.content.push({