diff --git a/lib/helpers/get-form-view-model.js b/lib/helpers/get-form-view-model.js index b0771ae5..a81bc167 100644 --- a/lib/helpers/get-form-view-model.js +++ b/lib/helpers/get-form-view-model.js @@ -124,8 +124,8 @@ function getAccountStores(application, callback) { // Iterate over all account stores, and filter out the ones that // don't have a provider (Organizations dont have providers) accountStoreMappings.filter(function (accountStoreMapping, next) { - next(!!accountStoreMapping.accountStore.provider); - }, function (accountStoreMappings) { + next(null, !!accountStoreMapping.accountStore.provider); + }, function (err, accountStoreMappings) { if (err) { return callback(err); }