@griddo/ax 1.57.15 → 1.57.19
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.57.
|
|
4
|
+
"version": "1.57.19",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -241,5 +241,5 @@
|
|
|
241
241
|
"publishConfig": {
|
|
242
242
|
"access": "public"
|
|
243
243
|
},
|
|
244
|
-
"gitHead": "
|
|
244
|
+
"gitHead": "1add4fe8fab86738ec20bfec4d9338ab1cc3ec37"
|
|
245
245
|
}
|
|
@@ -147,7 +147,7 @@ const restoreDataContentBulk = (dataContentId: number[]) => {
|
|
|
147
147
|
return sendRequest(SERVICES.RESTORE_DATA_CONTENT_BULK, { ids: dataContentId });
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
const getDistributorContent = async (siteID: number, data: any) => {
|
|
150
|
+
const getDistributorContent = async (siteID: number | string, data: any) => {
|
|
151
151
|
const { host, endpoint } = SERVICES.GET_DISTRIBUTOR_CONTENT;
|
|
152
152
|
const [prefix, suffix] = endpoint;
|
|
153
153
|
|
|
@@ -20,7 +20,8 @@ const ItemList = (props: IProps) => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
const getItems = async () => {
|
|
23
|
-
const
|
|
23
|
+
const siteID = currentSite ? currentSite : "global";
|
|
24
|
+
const response = await structuredData.getDistributorContent(siteID, params);
|
|
24
25
|
if (isReqOk(response.status)) {
|
|
25
26
|
setState({ ...context, state: { ...state, selectedItems: response.data } });
|
|
26
27
|
} else {
|