Skip to content

Commit

Permalink
fix(ng2.uiSrefActive): don't puke on sref to invalid target state
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Sep 4, 2016
1 parent c113b37 commit c9b6570
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ng2/directives/uiSrefStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const inactiveStatus: SrefStatus = {
* match the (tail of) the path, and the path's param values
*/
const pathMatches = (target: TargetState): Predicate<PathNode[]> => {
if (!target.exists()) return () => false;
let state: State = target.$state();
let targetParamVals = target.params();
let targetPath: PathNode[] = PathFactory.buildPath(target);
Expand Down

0 comments on commit c9b6570

Please sign in to comment.