fix js error on redirect

This commit is contained in:
Pete Matsyburka committed 2026-08-21 12:00:29 +03:00
1 parent 4e4354af99
commit 41b38cc594
1 file changed
+1 -1
+1 -1
View File
@@ -1776,7 +1776,7 @@ export default {
window.location.href = sanitizeUrl(this.completedRedirectUrl)
} else {
this.$nextTick(() => {
const root = this.$root.$el.parentNode.getRootNode()
const root = this.$root.$el.parentNode?.getRootNode() || document
const completedEl = root.getElementById('form_completed')
if (completedEl) {