mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
Only use keys from settings.json to create documentation files, fix array concat only for routes in extensions
This commit is contained in:
parent
8bc172d535
commit
c5dc672cc7
File diff suppressed because it is too large
Load Diff
@ -266,8 +266,9 @@ class Strapi extends EventEmitter {
|
||||
* Handle plugin extensions
|
||||
*/
|
||||
// merge extensions config folders
|
||||
_.mergeWith(this.plugins, extensions.merges, (objValue, srcValue) => {
|
||||
if (_.isArray(srcValue) && _.isArray(objValue)) {
|
||||
_.mergeWith(this.plugins, extensions.merges, (objValue, srcValue, key) => {
|
||||
// concat routes
|
||||
if (_.isArray(srcValue) && _.isArray(objValue) && key === 'routes') {
|
||||
return srcValue.concat(objValue);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user