mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Fixed JS assuming "o_form_sheet_bg" is always found
This commit is contained in:
@@ -126,6 +126,9 @@ patch(FormCompiler.prototype, "web_chatter_position", {
|
||||
chatterContainerHookXml.setAttribute("t-if", false);
|
||||
} else {
|
||||
const formSheetBgXml = res.querySelector(".o_form_sheet_bg");
|
||||
if (!formSheetBgXml) {
|
||||
return res;
|
||||
}
|
||||
const sheetBgChatterContainerHookXml =
|
||||
chatterContainerHookXml.cloneNode(true);
|
||||
sheetBgChatterContainerHookXml.classList.add("o-isInFormSheetBg");
|
||||
|
||||
Reference in New Issue
Block a user