Fixed action dialog applying actions

This commit is contained in:
ThaumRystra
2024-04-06 12:41:15 +02:00
parent 1fb1eb83c7
commit 51fa1e7e0b
8 changed files with 24 additions and 16 deletions

View File

@@ -22,6 +22,10 @@ export default async function applyDamagePropTask(
const { title, operation } = task.params;
let targetProp = task.params.targetProp;
console.log({ task, action, result, userInput });
if (!targetProp) throw new Meteor.Error('not-found', 'Target property is required')
// Set the scope properties
result.pushScope = {};
if (operation === 'increment') {