[FIX] mail: prevent from closing an already deleted chat window

task-2394789

closes odoo/odoo#62626

X-original-commit: c32a3e9cbe0323e0b1fcc70b1438e9a56185493c
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Sébastien Theys
2020-11-30 15:26:02 +00:00
parent faf3a5df99
commit 5cfc62cb33
@@ -100,6 +100,9 @@ class ChatWindowHeader extends Component {
*/
_onClickClose(ev) {
ev.stopPropagation();
if (!this.chatWindow) {
return;
}
this.chatWindow.close();
}