@knovator/pagecreator-admin 1.5.6 → 1.5.7
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/index.cjs +3 -2
- package/index.js +3 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -4029,6 +4029,7 @@ const DNDItemsList = ({
|
|
|
4029
4029
|
onFilterClick,
|
|
4030
4030
|
disableSettings: _disableSettings = false
|
|
4031
4031
|
}) => {
|
|
4032
|
+
console.log('listCode: ', listCode);
|
|
4032
4033
|
console.log('items: ', items);
|
|
4033
4034
|
return /*#__PURE__*/React__default["default"].createElement(DragDropContextWrapper, {
|
|
4034
4035
|
onDragEnd: onDragEnd
|
|
@@ -7230,13 +7231,13 @@ const WidgetForm = ({
|
|
|
7230
7231
|
if (collectionToUse) getCollectionData(collectionToUse, str, options => {
|
|
7231
7232
|
if (typeof callback === 'function') callback(options.map(item => Object.assign({
|
|
7232
7233
|
value: item['_id'] || item['id'],
|
|
7233
|
-
label: item['name']
|
|
7234
|
+
label: item['name'] || item['title']
|
|
7234
7235
|
}, item)));
|
|
7235
7236
|
if (formState === 'UPDATE') {
|
|
7236
7237
|
let selectedOptions = (collectionItems === null || collectionItems === void 0 ? void 0 : collectionItems.map(itemId => {
|
|
7237
7238
|
item = options.find(item => item._id === itemId || item.id === itemId);
|
|
7238
7239
|
return item ? Object.assign({
|
|
7239
|
-
label: item.name,
|
|
7240
|
+
label: item.name || item.title,
|
|
7240
7241
|
value: item._id || item.id
|
|
7241
7242
|
}, item) : {};
|
|
7242
7243
|
})) || [];
|
package/index.js
CHANGED
|
@@ -4017,6 +4017,7 @@ const DNDItemsList = ({
|
|
|
4017
4017
|
onFilterClick,
|
|
4018
4018
|
disableSettings: _disableSettings = false
|
|
4019
4019
|
}) => {
|
|
4020
|
+
console.log('listCode: ', listCode);
|
|
4020
4021
|
console.log('items: ', items);
|
|
4021
4022
|
return /*#__PURE__*/React.createElement(DragDropContextWrapper, {
|
|
4022
4023
|
onDragEnd: onDragEnd
|
|
@@ -7218,13 +7219,13 @@ const WidgetForm = ({
|
|
|
7218
7219
|
if (collectionToUse) getCollectionData(collectionToUse, str, options => {
|
|
7219
7220
|
if (typeof callback === 'function') callback(options.map(item => Object.assign({
|
|
7220
7221
|
value: item['_id'] || item['id'],
|
|
7221
|
-
label: item['name']
|
|
7222
|
+
label: item['name'] || item['title']
|
|
7222
7223
|
}, item)));
|
|
7223
7224
|
if (formState === 'UPDATE') {
|
|
7224
7225
|
let selectedOptions = (collectionItems === null || collectionItems === void 0 ? void 0 : collectionItems.map(itemId => {
|
|
7225
7226
|
item = options.find(item => item._id === itemId || item.id === itemId);
|
|
7226
7227
|
return item ? Object.assign({
|
|
7227
|
-
label: item.name,
|
|
7228
|
+
label: item.name || item.title,
|
|
7228
7229
|
value: item._id || item.id
|
|
7229
7230
|
}, item) : {};
|
|
7230
7231
|
})) || [];
|