strapi-plugin-meilisearch 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-meilisearch",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Synchronise and search in your Strapi content-types with Meilisearch",
5
5
  "scripts": {
6
6
  "playground:dev": "yarn --cwd ./playground && yarn --cwd ./playground dev",
@@ -215,7 +215,7 @@ module.exports = ({ strapi }) => {
215
215
  if (entriesQuery.publicationState === 'preview') {
216
216
  return entries
217
217
  } else {
218
- return entries.filter(entry => !(entry.publishedAt === null))
218
+ return entries.filter(entry => !(entry?.publishedAt === null))
219
219
  }
220
220
  },
221
221