strapi-layout-plugin 1.0.13 → 1.0.14

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-layout-plugin",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Strapi layout engine plugin for Sitecore-like routing",
5
5
  "strapi": {
6
6
  "name": "strapi-layout-plugin",
@@ -29,9 +29,8 @@ const getDynamicSectionsPopulate = (strapi) => {
29
29
  const components = strapi.components;
30
30
 
31
31
  for (const [uid, schema] of Object.entries(components)) {
32
- if (uid.startsWith('core.')) {
33
- const attributes = schema.attributes || {};
34
- const populateMap = {};
32
+ const attributes = schema.attributes || {};
33
+ const populateMap = {};
35
34
 
36
35
  for (const [attrName, attrDef] of Object.entries(attributes)) {
37
36
  const type = attrDef.type;
@@ -84,7 +83,6 @@ const getDynamicSectionsPopulate = (strapi) => {
84
83
  } else {
85
84
  populate[uid] = { populate: '*' };
86
85
  }
87
- }
88
86
  }
89
87
  return populate;
90
88
  };