mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
Handle callback errors
This commit is contained in:
@@ -306,6 +306,9 @@ define('admin/general/dashboard', ['semver', 'Chart'], function(semver, Chart) {
|
||||
units: units || 'hours',
|
||||
until: until
|
||||
}, function (err, data) {
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
if (JSON.stringify(graphData.traffic) === JSON.stringify(data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user