@griddo/ax 1.75.243 → 1.75.245

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": "1.75.243",
4
+ "version": "1.75.245",
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": "31f15f3aa0a3e21011c2b16c225005ae8ec52eb4"
233
+ "gitHead": "c825c8ae20cf1750e161f89c1064b759df50fe3e"
234
234
  }
@@ -120,6 +120,7 @@ const getDataContents = (params: IGetStructuredDataParams, siteID?: number | nul
120
120
  filterQuery,
121
121
  relatedFields = false,
122
122
  order,
123
+ lang
123
124
  } = params;
124
125
 
125
126
  const url = siteID ? `${host}/site/${siteID}${endpoint}` : `${host}${endpoint}`;
@@ -130,7 +131,11 @@ const getDataContents = (params: IGetStructuredDataParams, siteID?: number | nul
130
131
  if (order) SERVICES.GET_DATA_CONTENTS.dynamicUrl += `&order=${order}`;
131
132
  if (filterQuery) SERVICES.GET_DATA_CONTENTS.dynamicUrl += filterQuery;
132
133
 
133
- return sendRequest(SERVICES.GET_DATA_CONTENTS, null);
134
+ const dataHeader = {
135
+ ...(lang && { lang }),
136
+ };
137
+
138
+ return sendRequest(SERVICES.GET_DATA_CONTENTS, null, dataHeader);
134
139
  };
135
140
 
136
141
  const createDataContent = (data: any) => {
@@ -229,7 +229,6 @@ const Content = (props: IProps): JSX.Element => {
229
229
  itemsPerPage,
230
230
  query: searchQuery,
231
231
  format: "list",
232
- lang: lang.id
233
232
  };
234
233
 
235
234
  return params;