Commit ddd6fd6
Merge #597
597: fix: issue causing TypeError: Cannot read properties of null (reading… r=bidoubiwa a=Kazdan1994
… 'publishedAt')
# Pull Request
## Related issue
Fixes #<issue_number>
## What does this PR do?
- fix an issue in `server/services/meilisearch/config.js`
TypeError: Cannot read properties of null (reading 'publishedAt') at strapi-plugin-meilisearch/server/services/meilisearch/config.js:209:46
make change on this line
`return entries.filter(entry => !(entry?.publishedAt === null))`
to remove the error
## PR checklist
Please check if your PR fulfills the following requirements:
- [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [ ] Have you read the contributing guidelines?
- [ ] Have you made sure that the title is accurate and descriptive of the changes?
Thank you so much for contributing to Meilisearch!
Co-authored-by: arthur.jacquemin <[email protected]>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
0 commit comments