Fix onErrorActionTypeChange: sel.nextElementSibling -> sel.parentElement.nextElementSibling

The Error Action HTML structure wraps the select in a flex div sibling to
the .error-action-body div, so sel.nextElementSibling was null.
This commit is contained in:
2026-08-20 21:29:07 +03:00
parent e6602c40bf
commit 03ec13364c
+1 -1
View File
@@ -2094,7 +2094,7 @@ function buildErrorActionRow() {
}
function onErrorActionTypeChange(sel) {
const body = sel.nextElementSibling;
const body = sel.parentElement.nextElementSibling;
if (sel.value === 'proactive') {
body.innerHTML = buildBerPcHtml(['display','tone']);
const pc = body.querySelector('.ber-pc');