Skip to content

Commit

Permalink
fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
mathisonian committed Aug 22, 2016
1 parent 8daeb05 commit ca4c145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/visualizationtype.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ module.exports = function(sequelize, DataTypes) {
}).then(function() {
npm.config.set('loglevel', loglevel);
debug(('Successfully installed ' + installName).green);
return self._buildFromNPM(moduleName, preview);
return self._buildFromNPM(moduleName || installName, preview);
});
},

Expand Down

0 comments on commit ca4c145

Please sign in to comment.