Add null guard for infiniteData.length in MoreModal handleScroll

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 23:37:34 +08:00
parent a9a4b89111
commit 1258829c01

View File

@@ -400,7 +400,7 @@ async function fetchData() {
function handleScroll(event) {
if (
maxItems.value ||
infiniteData.value.length < 20 ||
(infiniteData.value?.length ?? 0) < 20 ||
infiniteFinish.value === false
)
return;