From 360df7900469e674d75d310b5a460ea4e27f3840 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 15 Aug 2022 12:31:56 +0200 Subject: [PATCH] Fixed after save trigger not firing when no targets --- .../api/engine/actions/applyPropertyByType/applySavingThrow.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/imports/api/engine/actions/applyPropertyByType/applySavingThrow.js b/app/imports/api/engine/actions/applyPropertyByType/applySavingThrow.js index 3a11e935..6064e3bd 100644 --- a/app/imports/api/engine/actions/applyPropertyByType/applySavingThrow.js +++ b/app/imports/api/engine/actions/applyPropertyByType/applySavingThrow.js @@ -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)); }