diff --git a/src/store/actions.ts b/src/store/actions.ts index 86fd48f..095b217 100644 --- a/src/store/actions.ts +++ b/src/store/actions.ts @@ -182,7 +182,7 @@ export function fetchAll(etesync: CredentialsData, currentEntries: EntriesType) const prevUid = currentEntries.get(journal.uid)?.value?.last(undefined)?.uid ?? null; // FIXME: expose it in a non-hacky way. - if (prevUid === (journal as any)._json.lastUid) { + if (prevUid && (prevUid === (journal as any)._json.lastUid)) { return true; } return dispatch(fetchEntries(etesync, journal.uid, prevUid));