Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/Filters/GetLocaleCollectionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ function getLocaleCollectionItem(config, collection, pageOverride, langCode, ind
}

// find the modified locale `page` again in `collections.all`
let all =
this.collections?.all ||
this.ctx?.collections?.all ||
this.context?.environments?.collections?.all ||
[];
let all = this.collections?.all || this.data?.collections?.all || [];

return getCollectionItem(all, modifiedLocalePage, 0);
}

Expand Down