Fixed after save trigger not firing when no targets

This commit is contained in:
Stefan Zermatten
2022-08-15 12:31:56 +02:00
parent a8f163ff33
commit 360df79004

View File

@@ -31,7 +31,8 @@ export default function applySavingThrow(node, actionContext){
// succeeeded and failed
if (!saveTargets?.length){
scope['$saveFailed'] = {value: true};
scope['$saveSucceeded'] = {value: true};
scope['$saveSucceeded'] = { value: true };
applyNodeTriggers(node, 'after', actionContext);
return node.children.forEach(child => applyProperty(child, actionContext));
}