Skip to content

Commit

Permalink
Fix hidden tooltip
Browse files Browse the repository at this point in the history
change loading order will fix this issue
  • Loading branch information
Crasher508 committed Feb 28, 2024
1 parent 9c004b3 commit 91229f4
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions sipa/static/js/statuspage.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,16 @@ class Statuspage {

let self = this;
issueCachedRequest(
this.url,
this.maintenancesUrl,
data => {
self.callback.call(null, parse_statuspage_data(data));
if (maintenancesUrl !== null) {
issueCachedRequest(
this.maintenancesUrl,
data => self.maintenancesCallback.call(null, parse_statuspage_maintenances_data(data)),
err => {
throw new Error(err);
}
);
}
self.maintenancesCallback.call(null, parse_statuspage_maintenances_data(data));
issueCachedRequest(
this.url,
data => self.callback.call(null, parse_statuspage_data(data)),
err => {
throw new Error(err);
}
);
},
err => {
throw new Error(err);
Expand Down

0 comments on commit 91229f4

Please sign in to comment.