Skip to content

Commit

Permalink
Step 2.5: Update delete button logic to use controller helper
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 23, 2016
1 parent aec1446 commit 04378b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/scripts/controllers/chats.controller.js
Expand Up @@ -13,7 +13,7 @@ export default class ChatsCtrl extends Controller {
}

remove(chat) {
this.data.splice(this.data.indexOf(chat), 1);
Chats.remove(chat._id);
}
}

Expand Down

0 comments on commit 04378b6

Please sign in to comment.