backend.min.js TypeError
-
Hi Team,
Getting the following on my live and staging site, across all pages on the front and back end:
Search console:
backend.min.js:1 Uncaught TypeError: Cannot set properties of null (setting ‘value’)
at HTMLDocument. (backend.min.js:1:14320)
Code in js effected in BOLD:void 0 !== typeof r && (document.querySelector(“input[name=swcfpc_tab]”).value = r),
Looking at AI – possible fix (not accurate but may help) could be:
document.querySelector(“.swcfpc_faq_accordion”) && v();
const r = document?.querySelector(“#swcfpc_tab_links .nav-tab-active”)?.dataset?.tab;
if (typeof r !== “undefined”) {
const inputElement = document.querySelector(“input[name=swcfpc_tab]”);
if (inputElement) {
inputElement.value = r;
}
}document.querySelector(“#swcfpc_options”)?.addEventListener(“submit”, (e) => {
s();
});
- You must be logged in to reply to this topic.