Update infinite scroll for db optimize configuration

This commit is contained in:
Sam Becker 2025-02-03 08:56:04 -06:00
parent e03c3d58ce
commit 531d4efcb5

View File

@ -129,7 +129,9 @@ export default function InfinitePhotoScroll({
} as any), [data, mutate]);
useVisible({ ref: buttonContainerRef, onVisible: () => {
if (size === 0) { advance(); }
if (ADMIN_DB_OPTIMIZE_ENABLED && size === 0) {
advance();
}
}});
const renderMoreButton = () =>