mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
fix js error on redirect
This commit is contained in:
1 parent
4e4354af99
commit
41b38cc594
1 file changed
+1
-1
@@ -1776,7 +1776,7 @@ export default {
|
|||||||
window.location.href = sanitizeUrl(this.completedRedirectUrl)
|
window.location.href = sanitizeUrl(this.completedRedirectUrl)
|
||||||
} else {
|
} else {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const root = this.$root.$el.parentNode.getRootNode()
|
const root = this.$root.$el.parentNode?.getRootNode() || document
|
||||||
const completedEl = root.getElementById('form_completed')
|
const completedEl = root.getElementById('form_completed')
|
||||||
|
|
||||||
if (completedEl) {
|
if (completedEl) {
|
||||||
|
|||||||
Reference in new issue
Block a user