0
0
Fork 0

fix: refs #6273 console error

This commit is contained in:
Jorge Penadés 2024-06-07 14:19:10 +02:00
parent 8d89fc2d90
commit 59b85f24ea
1 changed files with 1 additions and 1 deletions

View File

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