(js) Reset "selectedCard" when cancelling new card

pull/91/head
Francis Lachapelle 2015-07-23 11:59:15 -04:00
parent 12875539bb
commit c1d744e47a
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@
if (vm.card.isNew) {
// Cancelling the creation of a card
vm.card = null;
delete AddressBook.selectedFolder.selectedCard;
$state.go('app.addressbook', { addressbookId: AddressBook.selectedFolder.id });
}
else {