jamespot-front-business 1.1.78 → 1.1.80
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/dist/cjs.js +13 -5
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +13 -5
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +4 -4
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -2405,7 +2405,7 @@ const widgetQuickSurveyDefinition = {
|
|
|
2405
2405
|
label: WIDGET_QUICK_SURVEY_LABEL,
|
|
2406
2406
|
description: WIDGET_QUICK_SURVEY_DESCRIPTION,
|
|
2407
2407
|
name: jamespot.WidgetsName.QuickSurvey,
|
|
2408
|
-
img: '/img/fast-intranet/widget-
|
|
2408
|
+
img: '/img/fast-intranet/widget-quick-survey.png',
|
|
2409
2409
|
available: true,
|
|
2410
2410
|
panel: {
|
|
2411
2411
|
useWrapper: true,
|
|
@@ -3391,7 +3391,13 @@ function createAddfileattachmentField(installedField) {
|
|
|
3391
3391
|
}
|
|
3392
3392
|
function createHtmlField(formItem) {
|
|
3393
3393
|
const field = Object.assign(Object.assign({}, generateNewFormField(AppFormItemTypes.CODEHTML, false)), { id: formItem.name });
|
|
3394
|
-
|
|
3394
|
+
const code = formItem.properties.code;
|
|
3395
|
+
if (typeof code === 'object' && (code === null || code === void 0 ? void 0 : code.html) && typeof code.html === 'string') {
|
|
3396
|
+
field.properties[0].value = code.html;
|
|
3397
|
+
}
|
|
3398
|
+
else if (typeof code === 'string') {
|
|
3399
|
+
field.properties[0].value = code;
|
|
3400
|
+
}
|
|
3395
3401
|
return field;
|
|
3396
3402
|
}
|
|
3397
3403
|
function createImageField() {
|
|
@@ -4855,9 +4861,11 @@ const fetchStudioAppsList = toolkit.createAsyncThunk('studio/appsList', (intl, {
|
|
|
4855
4861
|
const articlesCount = (yield jApi.article.count(app.idApp)).result;
|
|
4856
4862
|
return Object.assign(Object.assign({}, coreApp), { articlesCount });
|
|
4857
4863
|
})));
|
|
4858
|
-
const apps = appsPromisesResult
|
|
4859
|
-
|
|
4860
|
-
|
|
4864
|
+
const apps = appsPromisesResult
|
|
4865
|
+
.map((result) => {
|
|
4866
|
+
return result.status === 'fulfilled' ? result.value : null;
|
|
4867
|
+
})
|
|
4868
|
+
.reduce((prev, curr) => {
|
|
4861
4869
|
if (curr !== null) {
|
|
4862
4870
|
return prev.concat([curr]);
|
|
4863
4871
|
}
|