Skip to content

Commit

Permalink
fix default hack state transition
Browse files Browse the repository at this point in the history
  • Loading branch information
clkao committed Aug 2, 2014
1 parent 3b7391f commit 4e2bb4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app/controllers.ls
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ angular.module 'app.controllers' <[ui.state ngCookies]>
unless docId
if HackFolder.docs.0?id
$scope.docId ?= that
$state.transitionTo 'hack.doc', { docId: null, hackId: $scope.hackId }
return
else
if $state.params.docId is HackFolder.docs.0?id
if $state.params.docId is HackFolder.docs.0?id
$state.transitionTo 'hack.doc', { docId: null, hackId: $scope.hackId }
doc = HackFolder.activate docId if docId
if doc?type is \hackfoldr
Expand Down

0 comments on commit 4e2bb4a

Please sign in to comment.