Add null guard for infiniteData.length in MoreModal handleScroll
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a9a4b89111
commit
1258829c01
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user