From 31f08cd175c877430c6d775ae59a1cb57710d0ff Mon Sep 17 00:00:00 2001 From: Tasso Evangelista Date: Mon, 29 Apr 2019 09:52:14 -0700 Subject: [PATCH] [FIX] Remove reference to inexistent field when deleting message in thread (#14311) [FIX] Remove reference to inexistent field when deleting message in thread --- app/threads/client/flextab/threads.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/threads/client/flextab/threads.js b/app/threads/client/flextab/threads.js index 89925f27226e..d61776d24b7f 100644 --- a/app/threads/client/flextab/threads.js +++ b/app/threads/client/flextab/threads.js @@ -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); } }, });