From 5a0424e6160d63d99fc612ff1a2159f7e72deb82 Mon Sep 17 00:00:00 2001 From: danloa Date: Thu, 14 Nov 2024 14:49:55 -0400 Subject: [PATCH] Use optional chaining to get _parent --- src/components/screen-renderer.vue | 2 +- src/components/vue-form-renderer.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/screen-renderer.vue b/src/components/screen-renderer.vue index f3a7a3720..24bfb41a4 100644 --- a/src/components/screen-renderer.vue +++ b/src/components/screen-renderer.vue @@ -37,7 +37,7 @@ :is="component" ref="component" :vdata="value" - :_parent="_parent || value._parent" + :_parent="_parent || value?._parent" :_initial-page="currentPage" :taskdraft="taskdraft" @after-submit="afterSubmit" diff --git a/src/components/vue-form-renderer.vue b/src/components/vue-form-renderer.vue index 1d1441c33..48d331033 100644 --- a/src/components/vue-form-renderer.vue +++ b/src/components/vue-form-renderer.vue @@ -10,7 +10,7 @@