Add optional chaining for querySelector result in Files.vue

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 08:45:27 +08:00
parent 564ead23bf
commit b2b00c4542

View File

@@ -630,7 +630,7 @@
}); });
// 為 DataTable tbody 加入 .scrollbar 選擇器 // 為 DataTable tbody 加入 .scrollbar 選擇器
const tbodyElement = document.querySelector('.p-datatable-tbody'); const tbodyElement = document.querySelector('.p-datatable-tbody');
tbodyElement.classList.add('scrollbar'); tbodyElement?.classList.add('scrollbar');
isLoading.value = false; isLoading.value = false;
}); });
</script> </script>