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:
committed by
bt-jmontero
parent
7c7778c536
commit
c49912ea4a
@@ -126,6 +126,9 @@ patch(FormCompiler.prototype, "web_chatter_position", {
|
|||||||
chatterContainerHookXml.setAttribute("t-if", false);
|
chatterContainerHookXml.setAttribute("t-if", false);
|
||||||
} else {
|
} else {
|
||||||
const formSheetBgXml = res.querySelector(".o_form_sheet_bg");
|
const formSheetBgXml = res.querySelector(".o_form_sheet_bg");
|
||||||
|
if (!formSheetBgXml) {
|
||||||
|
return res;
|
||||||
|
}
|
||||||
const sheetBgChatterContainerHookXml =
|
const sheetBgChatterContainerHookXml =
|
||||||
chatterContainerHookXml.cloneNode(true);
|
chatterContainerHookXml.cloneNode(true);
|
||||||
sheetBgChatterContainerHookXml.classList.add("o-isInFormSheetBg");
|
sheetBgChatterContainerHookXml.classList.add("o-isInFormSheetBg");
|
||||||
|
|||||||
Reference in New Issue
Block a user