Skip to content

Commit

Permalink
fix(compose): null/undefined components should not cause error
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
EisenbergEffect committed Mar 26, 2015
1 parent 06353a9 commit 14d2653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ function processInstruction(composer, instruction){
currentBehavior:composer.currentBehavior
})).then(next => {
composer.currentBehavior = next;
composer.currentViewModel = next.executionContext;
composer.currentViewModel = next ? next.executionContext : null;
});
}

0 comments on commit 14d2653

Please sign in to comment.