Skip to content

Commit

Permalink
Fix merge dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed May 24, 2018
1 parent b062102 commit 88b932f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/scripts/services/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,12 +845,11 @@ angular.module('icestudio')
if (type in common.allDependencies) {
return; // If the block is already in dependencies
}
// Merge the block dependencies
// Merge the block's dependencies
var deps = block.dependencies;
for (var i in deps) {
var depType = this.dependencyID(deps[i]);
for (var depType in deps) {
if (!(depType in common.allDependencies)) {
common.allDependencies[depType] = deps[i];
common.allDependencies[depType] = deps[depType];
}
}
// Add the block as a dependency
Expand Down

0 comments on commit 88b932f

Please sign in to comment.