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);