Skip to content

Commit

Permalink
issue realm#6925
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashik55 committed Nov 9, 2024
1 parent 93d7d3e commit e7e4dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/realm-react/src/cachedCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function createCachedCollection<T extends Realm.Object<any>>({

// Item(s) were modified, just clear them from the cache so that we return new instances for them
changes.newModifications.forEach((index) => {
const objectId = listenerCollection[index]._objectKey();
const objectId = listenerCollection[index]?._objectKey();
if (objectId) {
const cacheKey = getCacheKey(objectId);
if (objectCache.has(cacheKey)) {
Expand Down

0 comments on commit e7e4dde

Please sign in to comment.