diff options
Diffstat (limited to 'addons/mail/static/src/js')
| -rw-r--r-- | addons/mail/static/src/js/discuss.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/discuss.js b/addons/mail/static/src/js/discuss.js index 79a13c307c8..7b56282565a 100644 --- a/addons/mail/static/src/js/discuss.js +++ b/addons/mail/static/src/js/discuss.js @@ -344,7 +344,9 @@ var Discuss = AbstractAction.extend({ on_detach_callback: function () { this._super(); this.call('mail_service', 'getMailBus').trigger('discuss_open', false); - this._threadsScrolltop[this._thread.getID()] = this._threadWidget.getScrolltop(); + if (this._thread) { + this._threadsScrolltop[this._thread.getID()] = this._threadWidget.getScrolltop(); + } }, //-------------------------------------------------------------------------- |
