We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8744d commit d4c6a37Copy full SHA for d4c6a37
server/services/meilisearch/config.js
@@ -33,11 +33,11 @@ module.exports = ({ strapi }) => {
33
34
const contentTypeConfig = meilisearchConfig[collection] || {}
35
36
- let indexName = contentTypeConfig.indexName
37
- if (indexName !== undefined && !Array.isArray(indexName))
38
- indexName = [indexName]
+ let indexNames = [contentTypeConfig.indexName]
+ .flat(2)
+ .filter(index => index)
39
40
- return indexName || [collection]
+ return indexNames.length > 0 ? indexNames : [collection]
41
},
42
43
/**
0 commit comments