@griddo/cx 1.57.21 → 1.57.22

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.57.21",
4
+ "version": "1.57.22",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -66,7 +66,7 @@
66
66
  "react-helmet": "^6.0.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@griddo/eslint-config-back": "^1.57.21",
69
+ "@griddo/eslint-config-back": "^1.57.22",
70
70
  "eslint": "^7.5.0",
71
71
  "eslint-plugin-node": "^11.1.0",
72
72
  "eslint-plugin-react": "7.14.3",
@@ -98,5 +98,5 @@
98
98
  "publishConfig": {
99
99
  "access": "public"
100
100
  },
101
- "gitHead": "a5fd581b83ba3d56216597abc0f55c70397eb4d5"
101
+ "gitHead": "f6bade0cb8433430271d946003ed1e65cfa069de"
102
102
  }
@@ -128,7 +128,8 @@ async function renderListPages(
128
128
  }
129
129
 
130
130
  async function renderMultiplePages(page, additionalInfo, createPage) {
131
- const { multiPageElements, ...cleanPage } = page;
131
+ const { multiPageElements: multiPageElementsBulk, ...cleanPage } = page;
132
+ const multiPageElements = JSON.parse(JSON.stringify(multiPageElementsBulk));
132
133
 
133
134
  // si no hay un elemento sin slug, como mínimo hay que dibujar una página principal para el conjunto de páginas
134
135
  if (!multiPageElements.find(({ sectionSlug }) => sectionSlug === '/'))
@@ -148,9 +149,8 @@ async function renderMultiplePages(page, additionalInfo, createPage) {
148
149
  ? paginatedPage.fullUrl.slice(0, -1)
149
150
  : paginatedPage.fullUrl;
150
151
  const rightSectionSlug = sectionSlug?.replace(/\//g, '');
151
- const newCompose = `${compose}${
152
- compose.endsWith('/') ? '' : '/'
153
- }${rightSectionSlug}`;
152
+ const newCompose = `${compose}${compose.endsWith('/') ? '' : '/'
153
+ }${rightSectionSlug}`;
154
154
  paginatedPage.fullUrl = `${fullUrl}/${rightSectionSlug}`;
155
155
  paginatedPage.fullPath.compose = newCompose;
156
156
  paginatedPage.slug = newCompose;