@knovator/pagecreator-admin 1.5.4 → 1.5.6
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
|
@@ -3440,6 +3440,7 @@ const CustomReactSelect = ({
|
|
|
3440
3440
|
customStyles,
|
|
3441
3441
|
selectKey
|
|
3442
3442
|
}) => {
|
|
3443
|
+
console.log('selectedOptions: ', _selectedOptions);
|
|
3443
3444
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3444
3445
|
className: wrapperClassName
|
|
3445
3446
|
}, label && (/*#__PURE__*/React__default["default"].createElement("label", {
|
|
@@ -3460,7 +3461,7 @@ const CustomReactSelect = ({
|
|
|
3460
3461
|
isLoading: isLoading,
|
|
3461
3462
|
loadOptions: loadOptions,
|
|
3462
3463
|
placeholder: placeholder,
|
|
3463
|
-
formatOptionLabel: formatOptionLabel ? option => formatOptionLabel(listCode, option) : undefined,
|
|
3464
|
+
formatOptionLabel: formatOptionLabel && listCode !== 'pages' && listCode !== 'blogs' ? option => formatOptionLabel(listCode, option) : undefined,
|
|
3464
3465
|
styles: customStyles
|
|
3465
3466
|
}), error && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3466
3467
|
className: "khb_input-error "
|
|
@@ -4044,7 +4045,7 @@ const DNDItemsList = ({
|
|
|
4044
4045
|
className: "khb_DND-item",
|
|
4045
4046
|
key: item.value,
|
|
4046
4047
|
ref: provided.innerRef
|
|
4047
|
-
}, provided.draggableProps, provided.dragHandleProps), typeof formatItem === 'function' && listCode ? formatItem(listCode, item) : (/*#__PURE__*/React__default["default"].createElement("div", {
|
|
4048
|
+
}, provided.draggableProps, provided.dragHandleProps), typeof formatItem === 'function' && listCode && listCode !== 'pages' && listCode !== 'blogs' ? formatItem(listCode, item) : (/*#__PURE__*/React__default["default"].createElement("div", {
|
|
4048
4049
|
className: "khb_DND-item-content"
|
|
4049
4050
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4050
4051
|
className: "khb_DND-item-text"
|
package/index.js
CHANGED
|
@@ -3428,6 +3428,7 @@ const CustomReactSelect = ({
|
|
|
3428
3428
|
customStyles,
|
|
3429
3429
|
selectKey
|
|
3430
3430
|
}) => {
|
|
3431
|
+
console.log('selectedOptions: ', _selectedOptions);
|
|
3431
3432
|
return /*#__PURE__*/React.createElement("div", {
|
|
3432
3433
|
className: wrapperClassName
|
|
3433
3434
|
}, label && (/*#__PURE__*/React.createElement("label", {
|
|
@@ -3448,7 +3449,7 @@ const CustomReactSelect = ({
|
|
|
3448
3449
|
isLoading: isLoading,
|
|
3449
3450
|
loadOptions: loadOptions,
|
|
3450
3451
|
placeholder: placeholder,
|
|
3451
|
-
formatOptionLabel: formatOptionLabel ? option => formatOptionLabel(listCode, option) : undefined,
|
|
3452
|
+
formatOptionLabel: formatOptionLabel && listCode !== 'pages' && listCode !== 'blogs' ? option => formatOptionLabel(listCode, option) : undefined,
|
|
3452
3453
|
styles: customStyles
|
|
3453
3454
|
}), error && /*#__PURE__*/React.createElement("p", {
|
|
3454
3455
|
className: "khb_input-error "
|
|
@@ -4032,7 +4033,7 @@ const DNDItemsList = ({
|
|
|
4032
4033
|
className: "khb_DND-item",
|
|
4033
4034
|
key: item.value,
|
|
4034
4035
|
ref: provided.innerRef
|
|
4035
|
-
}, provided.draggableProps, provided.dragHandleProps), typeof formatItem === 'function' && listCode ? formatItem(listCode, item) : (/*#__PURE__*/React.createElement("div", {
|
|
4036
|
+
}, provided.draggableProps, provided.dragHandleProps), typeof formatItem === 'function' && listCode && listCode !== 'pages' && listCode !== 'blogs' ? formatItem(listCode, item) : (/*#__PURE__*/React.createElement("div", {
|
|
4036
4037
|
className: "khb_DND-item-content"
|
|
4037
4038
|
}, /*#__PURE__*/React.createElement("p", {
|
|
4038
4039
|
className: "khb_DND-item-text"
|