diff --git a/changelog.md b/changelog.md index 63418075..5d091be7 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ - Updated Portuguese (Brazil) localization (thank you Kharmans on github!) - Fixed localization issues in the item editor application +- Fixed issue with the API throwing an error when editing attribute quantities ## Version 3.1.0 diff --git a/src/API/private-api.js b/src/API/private-api.js index c551a222..c57319fa 100644 --- a/src/API/private-api.js +++ b/src/API/private-api.js @@ -727,7 +727,7 @@ export default class PrivateAPI { static async _setAttributes(targetUuid, attributes, userId, { interactionId = false } = {}) { - const targetDocument = Utilities.document(targetUuid); + const targetDocument = Utilities.getDocument(targetUuid); const transaction = new Transaction(targetDocument); await transaction.appendDocumentChanges(attributes, { set: true });