@griddo/ax 11.4.18-rc.1 → 11.4.18-rc.2
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": "11.4.18-rc.
|
|
4
|
+
"version": "11.4.18-rc.2",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -224,5 +224,5 @@
|
|
|
224
224
|
"publishConfig": {
|
|
225
225
|
"access": "public"
|
|
226
226
|
},
|
|
227
|
-
"gitHead": "
|
|
227
|
+
"gitHead": "79372c5440a9bd8f818db1a2dac5e560d59cb6c0"
|
|
228
228
|
}
|
package/src/api/checkgroups.tsx
CHANGED
|
@@ -32,7 +32,7 @@ const getCheckGroupItems = async (
|
|
|
32
32
|
} = SERVICES.GET_STRUCTURED_DATA;
|
|
33
33
|
|
|
34
34
|
const allLanguagesQuery = allLanguages ? "&allLanguages=true" : "";
|
|
35
|
-
const languagesIdsQuery = languagesIds ? `&languagesIds=${languagesIds}` : "";
|
|
35
|
+
const languagesIdsQuery = languagesIds && languagesIds.length ? `&languagesIds=${languagesIds}` : "";
|
|
36
36
|
|
|
37
37
|
SERVICES.GET_STRUCTURED_DATA.dynamicUrl = `${host}${prefix}${siteId}${infix}${source}${suffix}?groupingCategories=on&order=title-ASC${allLanguagesQuery}${languagesIdsQuery}`;
|
|
38
38
|
|
package/src/api/selects.tsx
CHANGED
|
@@ -25,9 +25,7 @@ const getSelectSiteItems = async (siteId: number, entity: string, params?: Recor
|
|
|
25
25
|
let urlParams = "";
|
|
26
26
|
if (params) {
|
|
27
27
|
for (const prop in params) {
|
|
28
|
-
|
|
29
|
-
urlParams = urlParams + `${prop}=${params[prop]}&`;
|
|
30
|
-
}
|
|
28
|
+
urlParams = urlParams + `${prop}=${params[prop]}&`;
|
|
31
29
|
}
|
|
32
30
|
urlParams = urlParams.length ? "?" + urlParams.slice(0, -1) : "";
|
|
33
31
|
}
|
|
@@ -55,7 +55,7 @@ const AsyncSelect = (props: IAsyncSelectProps): JSX.Element => {
|
|
|
55
55
|
if (entity) {
|
|
56
56
|
let result = null;
|
|
57
57
|
if (site && !isCategories) {
|
|
58
|
-
const fullOptions = { ...options, languagesIds };
|
|
58
|
+
const fullOptions = languagesIds && languagesIds.length ? { ...options, languagesIds } : options;
|
|
59
59
|
result =
|
|
60
60
|
isPage && selectedContent
|
|
61
61
|
? await selects.getSelectSiteItems(site.id, entity, fullOptions, selectedContent.id)
|