gatsby-core-theme 20.0.2 → 20.0.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [20.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v20.0.3...v20.0.4) (2023-04-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * preview operator review pages ([732f8af](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/732f8afe0becc43694fa765cc00c2dc8212e938d))
7
+
8
+
9
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([a58d979](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a58d9795a5c666083ddff3e95a4a622f9dba3d0b))
10
+
11
+ ## [20.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v20.0.2...v20.0.3) (2023-04-17)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * preview operator review pages ([98d853f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/98d853f0bbead6363014459ebbbc254c7f1a2be4))
17
+ * preview operator review pages ([094954d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/094954df51989e44b52513523d050e100d7523a7))
18
+
1
19
  ## [20.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v20.0.1...v20.0.2) (2023-04-13)
2
20
 
3
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "20.0.2",
3
+ "version": "20.0.4",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -110,7 +110,7 @@ export default function AuthorBox({
110
110
  <div
111
111
  ref={biographyRef}
112
112
  className={`${styles.biography} ${
113
- author?.biography.split(' ').length > 30 && styles.showReadMore
113
+ author?.biography?.split(' ').length > 30 && styles.showReadMore
114
114
  }`}
115
115
  role="button"
116
116
  onClick={toggleReadMore}
@@ -119,7 +119,7 @@ export default function AuthorBox({
119
119
  tabIndex={0}
120
120
  dangerouslySetInnerHTML={{
121
121
  __html:
122
- author?.biography.split(' ').length > 30 && isReadMore
122
+ author?.biography?.split(' ').length > 30 && isReadMore
123
123
  ? `${textWordsLimit(author?.biography, 30)} <span class='${
124
124
  styles.contReadText
125
125
  }'>...${translate(translations, 'cont_read', 'continue reading')}</span>`
@@ -374,7 +374,7 @@ export function shiftFirstOperator(pageId, module, pagesMappedById) {
374
374
  }
375
375
 
376
376
  export const getModuleTitle = (module, page) => {
377
- if (page && page.relation_type === 'operator') {
377
+ if (page && page.relation && page.relation_type === 'operator') {
378
378
  return (
379
379
  module.module_title && module.module_title.replace('[operator_name]', page.relation.name)
380
380
  );
@@ -354,7 +354,12 @@ export default {
354
354
  cloneDeep(prefilledMarketModules[item.value_id])
355
355
  );
356
356
  } else {
357
- if (checkForInactiveOperatorToplist(item, page.relation.status)) return;
357
+ if (
358
+ transformedPages[market][pageType][index].relation &&
359
+ checkForInactiveOperatorToplist(item, page.relation.status)
360
+ )
361
+ return;
362
+
358
363
  res === 'pre_main_operators'
359
364
  ? page.sections.main.modules.unshift(cloneDeep(item))
360
365
  : page.sections.main.modules.push(cloneDeep(item));