mirror of https://github.com/OCA/web.git
Fixed JS assuming "o_form_sheet_bg" is always found
parent
a71c019fec
commit
69348c8f63
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue