(js) Reset "selectedCard" when cancelling new card

This commit is contained in:
Francis Lachapelle
2015-07-23 11:59:15 -04:00
parent 12875539bb
commit c1d744e47a

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 {