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/esm.js
CHANGED
|
@@ -2397,7 +2397,7 @@ const widgetQuickSurveyDefinition = {
|
|
|
2397
2397
|
label: WIDGET_QUICK_SURVEY_LABEL,
|
|
2398
2398
|
description: WIDGET_QUICK_SURVEY_DESCRIPTION,
|
|
2399
2399
|
name: WidgetsName.QuickSurvey,
|
|
2400
|
-
img: '/img/fast-intranet/widget-
|
|
2400
|
+
img: '/img/fast-intranet/widget-quick-survey.png',
|
|
2401
2401
|
available: true,
|
|
2402
2402
|
panel: {
|
|
2403
2403
|
useWrapper: true,
|
|
@@ -3383,7 +3383,13 @@ function createAddfileattachmentField(installedField) {
|
|
|
3383
3383
|
}
|
|
3384
3384
|
function createHtmlField(formItem) {
|
|
3385
3385
|
const field = Object.assign(Object.assign({}, generateNewFormField(AppFormItemTypes.CODEHTML, false)), { id: formItem.name });
|
|
3386
|
-
|
|
3386
|
+
const code = formItem.properties.code;
|
|
3387
|
+
if (typeof code === 'object' && (code === null || code === void 0 ? void 0 : code.html) && typeof code.html === 'string') {
|
|
3388
|
+
field.properties[0].value = code.html;
|
|
3389
|
+
}
|
|
3390
|
+
else if (typeof code === 'string') {
|
|
3391
|
+
field.properties[0].value = code;
|
|
3392
|
+
}
|
|
3387
3393
|
return field;
|
|
3388
3394
|
}
|
|
3389
3395
|
function createImageField() {
|
|
@@ -4847,9 +4853,11 @@ const fetchStudioAppsList = createAsyncThunk('studio/appsList', (intl, { extra,
|
|
|
4847
4853
|
const articlesCount = (yield jApi.article.count(app.idApp)).result;
|
|
4848
4854
|
return Object.assign(Object.assign({}, coreApp), { articlesCount });
|
|
4849
4855
|
})));
|
|
4850
|
-
const apps = appsPromisesResult
|
|
4851
|
-
|
|
4852
|
-
|
|
4856
|
+
const apps = appsPromisesResult
|
|
4857
|
+
.map((result) => {
|
|
4858
|
+
return result.status === 'fulfilled' ? result.value : null;
|
|
4859
|
+
})
|
|
4860
|
+
.reduce((prev, curr) => {
|
|
4853
4861
|
if (curr !== null) {
|
|
4854
4862
|
return prev.concat([curr]);
|
|
4855
4863
|
}
|