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) {
|
if (requestIsLocal && firstAttempt && err.status === 401) {
|
||||||
return self.loginPing().then(function() {
|
return self.loginPing().then(function() {
|
||||||
options.retry = 1;
|
options.retry = 1;
|
||||||
|
if (canceler) {
|
||||||
canceler.resolve();
|
canceler.resolve();
|
||||||
|
}
|
||||||
return self.datasourceRequest(options);
|
return self.datasourceRequest(options);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user