Address feedback from PR review

This commit is contained in:
Andrew Sliwinski 2018-12-18 12:26:14 -05:00
parent 020d3ea167
commit 1181cd8313
3 changed files with 14 additions and 16 deletions

View file

@ -139,12 +139,12 @@ const blocks = function (project) {
*/
const extensions = function (project) {
const result = {count: 0, id: []};
const ext = project.info.savedExtensions;
// Check to ensure project includes any extensions
if (typeof project.info.savedExtensions === 'undefined') return result;
if (typeof ext === 'undefined') return result;
// Iterate over extensions and build list
var ext = project.info.savedExtensions;
for (let i in ext) {
result.id.push(ext[i].extensionName);
}