Don't repull when there are no items to pull

This commit is contained in:
Nicolas Mowen 2024-04-03 10:14:19 -06:00
parent c5ecc522fd
commit 57480154a1

View File

@ -209,7 +209,7 @@ function Logs() {
try { try {
startObserver.current = new IntersectionObserver((entries) => { startObserver.current = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting) { if (entries[0].isIntersecting && logRange.start > 0) {
const start = Math.max(0, logRange.start - 100); const start = Math.max(0, logRange.start - 100);
axios axios