Skip to content

Commit 1918a7d

Browse files
dplewisflovilmart
authored andcommitted
Unhandled Promise Rejection (#952)
1 parent 18d6339 commit 1918a7d

File tree

2 files changed

+37
-6
lines changed

2 files changed

+37
-6
lines changed

package-lock.json

+33-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/AppsManager.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ const AppsManager = {
6060
// Fetch the latest usage and request info for the apps index
6161
getAllAppsIndexStats() {
6262
return Promise.all(this.apps().map(app => {
63+
if (app.serverInfo.error) {
64+
return;
65+
}
6366
return Promise.all(
64-
[
67+
[
6568
app.getClassCount('_Installation').then(count => app.installations = count),
6669
app.getClassCount('_User').then(count => app.users = count)
6770
]

0 commit comments

Comments
 (0)