@osovitny/anatoly 2.14.44 → 2.14.45

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.
@@ -1423,13 +1423,17 @@ class AppContextService extends BaseApiService {
1423
1423
  this.subscription = null;
1424
1424
  }
1425
1425
  //Public
1426
+ getLatestCurrent(success = null) {
1427
+ this.getCurrent(success, false);
1428
+ }
1426
1429
  getCurrent(success = null, getCachedIfExist = true) {
1427
- let context = this.getCurrentFromSession();
1428
- if (getCachedIfExist && context != null) {
1429
- if (success) {
1430
- success(context);
1430
+ if (getCachedIfExist) {
1431
+ let context = this.getCurrentFromSession();
1432
+ if (context != null) {
1433
+ if (success)
1434
+ success(context);
1435
+ return;
1431
1436
  }
1432
- return;
1433
1437
  }
1434
1438
  if (success) {
1435
1439
  this.successes.push(success);