nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -123,9 +123,9 @@ function runSyncOrAsync(fn, context, args, callback) {
if(result === undefined)
return callback();
if(result && typeof result === "object" && typeof result.then === "function") {
return result.catch(callback).then(function(r) {
return result.then(function(r) {
callback(null, r);
});
}, callback);
}
return callback(null, result);
}
@@ -167,7 +167,10 @@ function iteratePitchingLoaders(options, loaderContext, callback) {
// load loader module
loadLoader(currentLoaderObject, function(err) {
if(err) return callback(err);
if(err) {
loaderContext.cacheable(false);
return callback(err);
}
var fn = currentLoaderObject.pitch;
currentLoaderObject.pitchExecuted = true;
if(!fn) return iteratePitchingLoaders(options, loaderContext, callback);