From 59b85f24ea15fc9dd03477081000a2cdbd67a512 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 7 Jun 2024 14:19:10 +0200 Subject: [PATCH] fix: refs #6273 console error --- src/components/ui/VnSubToolbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/VnSubToolbar.vue b/src/components/ui/VnSubToolbar.vue index c0d129613..8c86c056a 100644 --- a/src/components/ui/VnSubToolbar.vue +++ b/src/components/ui/VnSubToolbar.vue @@ -18,7 +18,7 @@ onMounted(() => { const observer = new MutationObserver( () => (hasContent.value = - actions.value.childNodes.length + data.value.childNodes.length) + actions.value?.childNodes?.length + data.value?.childNodes?.length) ); if (actions.value) observer.observe(actions.value, opts); if (data.value) observer.observe(data.value, opts);