diff --git a/platform/core/src/runs/TransactingMutationListener.js b/platform/core/src/runs/TransactingMutationListener.js index aba0cd5b28..d9f6d074f7 100644 --- a/platform/core/src/runs/TransactingMutationListener.js +++ b/platform/core/src/runs/TransactingMutationListener.js @@ -40,19 +40,17 @@ define([], function () { var wasActive = transactionService.isActive(); cacheService.put(domainObject.getId(), domainObject.getModel()); - if (persistence.persisted()) { - if (!wasActive) { - transactionService.startTransaction(); - } + if (!wasActive) { + transactionService.startTransaction(); + } - transactionService.addToTransaction( - persistence.persist.bind(persistence), - persistence.refresh.bind(persistence) - ); + transactionService.addToTransaction( + persistence.persist.bind(persistence), + persistence.refresh.bind(persistence) + ); - if (!wasActive) { - transactionService.commit(); - } + if (!wasActive) { + transactionService.commit(); } }); }