taxtank-core 3.0.38 → 3.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18664,6 +18664,9 @@ class TransactionService extends RestService {
18664
18664
  return this.http.put(`${this.environment.apiV2}/${this.url}`, classToPlain(transactions))
18665
18665
  .pipe(map$1((response) => {
18666
18666
  const updatedTransactions = response.map((item) => this.createModelInstance(item));
18667
+ if (!this.cache) {
18668
+ return updatedTransactions;
18669
+ }
18667
18670
  updatedTransactions.forEach((updatedTransaction) => {
18668
18671
  replace(this.cache, updatedTransaction);
18669
18672
  });
@@ -18740,6 +18743,9 @@ class TransactionService extends RestService {
18740
18743
  });
18741
18744
  }
18742
18745
  replaceInCache(transactionToReplace) {
18746
+ if (!this.cache) {
18747
+ return;
18748
+ }
18743
18749
  replace(this.cache, transactionToReplace);
18744
18750
  this.updateCache();
18745
18751
  }