Skip to content

Commit

Permalink
[FIX] Remove reference to inexistent field when deleting message in t…
Browse files Browse the repository at this point in the history
…hread (#14311)

[FIX] Remove reference to inexistent field when deleting message in thread
  • Loading branch information
tassoevan authored and rodrigok committed Apr 30, 2019
1 parent 4a3e631 commit 31f08cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/threads/client/flextab/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ Template.threads.onCreated(async function() {
removed: ({ _id }) => {
this.Threads.remove(_id);

const { _id: mid } = this.mid.get() || {};
const mid = this.state.get('mid');
if (_id === mid) {
this.mid.set(null);
this.state.set('mid', null);
}
},
});
Expand Down

0 comments on commit 31f08cd

Please sign in to comment.