Mizu cant show more than 10000 entries (#973)

This commit is contained in:
lirazyehezkel 2022-04-05 12:25:01 +03:00 committed by GitHub
parent 0b0b9ce6d1
commit 866378b451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ export const EntriesList: React.FC<EntriesListProps> = ({
if (!focusedEntryId) setFocusedEntryId(entry.id.toString());
const newEntries = [...entries, entry];
if (newEntries.length === 10001) {
setLeftOffTop(newEntries[0].entry.id);
setLeftOffTop(newEntries[0].id);
newEntries.shift();
setNoMoreDataTop(false);
}