@griddo/ax 10.1.14 → 10.1.15

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/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "10.1.14",
4
+ "version": "10.1.15",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -230,5 +230,5 @@
230
230
  "publishConfig": {
231
231
  "access": "public"
232
232
  },
233
- "gitHead": "c0fee34d7f819c80cad8c71703fd6f32da2a6c3e"
233
+ "gitHead": "91c7e270d87c83e34e8777b1750ea9bfc397a8a5"
234
234
  }
@@ -455,8 +455,7 @@ const PageItem = (props: IPageItemProps): JSX.Element => {
455
455
  const CategoryColumns =
456
456
  isGlobal &&
457
457
  categoryColumns.map((col: any) => {
458
- const fromVal = col.from.includes(".") ? col.from.split(".")[1] : col.from;
459
- const type: any = structuredDataContent && (structuredDataContent[fromVal] || structuredDataContent[col.from]);
458
+ const type: any = structuredDataContent && structuredDataContent[col.key];
460
459
  const categories: string[] = !type
461
460
  ? []
462
461
  : Array.isArray(type)
@@ -335,7 +335,7 @@ const GlobalPageItem = (props: IGlobalPageItemProps): JSX.Element => {
335
335
  const mainUnpublishAction = { title: "Ok", onClick: toggleUnpublishModal };
336
336
 
337
337
  const CategoryColumns = categoryColumns.map((col: any) => {
338
- const type: any = structuredDataContent && structuredDataContent[col.from];
338
+ const type: any = structuredDataContent && structuredDataContent[col.key];
339
339
  const categories: string[] = !type
340
340
  ? []
341
341
  : Array.isArray(type)
@@ -178,7 +178,7 @@ const StructuredDataItem = (props: IStructuredDataItemProps): JSX.Element => {
178
178
  const menuOptions = isDisabled || !isEditable ? menuOptionsNoDuplicate : [duplicateOption, ...menuOptionsNoDuplicate];
179
179
 
180
180
  const CategoryColumns = categoryColumns.map((col: any) => {
181
- const type: any = structuredData && structuredData.content && structuredData.content[col.from];
181
+ const type: any = structuredData && structuredData.content && structuredData.content[col.key];
182
182
  const categories: string[] = !type
183
183
  ? []
184
184
  : Array.isArray(type)