[FIX] mail: fix crash when clicking a reply that is not yet loaded
closes odoo/odoo#78030 X-original-commit: 913c33c3938600353b2f607dd4142e86592890ce Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Samuel Degueldre <sdegueldre@users.noreply.github.com>
This commit is contained in:
@@ -36,6 +36,9 @@ function factory(dependencies) {
|
||||
message: replace(parentMessage),
|
||||
threadView: replace(threadView),
|
||||
});
|
||||
if (!parentMessageView) {
|
||||
return;
|
||||
}
|
||||
threadView.addComponentHint('highlight-reply', parentMessageView);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user