Skip to content

Commit

Permalink
Fixed JS assuming "o_form_sheet_bg" is always found
Browse files Browse the repository at this point in the history
  • Loading branch information
BT-jmontero authored and bt-jmontero committed Jul 27, 2023
1 parent 7c7778c commit c49912e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c49912e

Please sign in to comment.