Skip to content

Commit

Permalink
Fix an issue where variables couldn't be populated because their valu…
Browse files Browse the repository at this point in the history
…es wasn't available

Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Apr 23, 2024
1 parent 1ebe5f6 commit 5e65cb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ async function stopItem (id) {
}

const type = await types.getType(item.type)
const clone = populateVariablesMutable(deepClone(item), type)
const vars = await variables.getAllVariables()
const clone = populateVariablesMutable(deepClone(item), type, vars)

commands.executeCommand('items.stopItem', clone)
}
Expand Down

0 comments on commit 5e65cb4

Please sign in to comment.