mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add existence check for canceler.
This commit is contained in:
@@ -131,7 +131,9 @@ function (angular, _, coreModule, config) {
|
||||
if (requestIsLocal && firstAttempt && err.status === 401) {
|
||||
return self.loginPing().then(function() {
|
||||
options.retry = 1;
|
||||
if (canceler) {
|
||||
canceler.resolve();
|
||||
}
|
||||
return self.datasourceRequest(options);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user