Skip to content

Commit

Permalink
Disable forceLoad if reset() is called.
Browse files Browse the repository at this point in the history
If `reset()` is called before any "lazy" load is performed, then the `reset()` acts as the lazy load.
Disable `forceLoad` in this case.
  • Loading branch information
kaladay committed Mar 23, 2023
1 parent d5fc128 commit 16271d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/repo/abstractRepo.js
Expand Up @@ -151,6 +151,7 @@ core.service("AbstractRepo", function ($q, $rootScope, $timeout, ApiResponseActi
};

abstractRepo.reset = function () {
forceLoad = false;
defer = $q.defer();
fetch();
return defer.promise;
Expand Down

0 comments on commit 16271d2

Please sign in to comment.