@knovator/pagecreator-admin 0.0.9 → 0.0.10
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.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6826,10 +6826,10 @@ const WidgetForm = ({
|
|
|
6826
6826
|
let item;
|
|
6827
6827
|
setSelectedCollectionItems(((_a = data === null || data === void 0 ? void 0 : data.collectionItems) === null || _a === void 0 ? void 0 : _a.map(itemId => {
|
|
6828
6828
|
item = collectionData.find(item => item._id === itemId);
|
|
6829
|
-
return item ? {
|
|
6829
|
+
return item ? Object.assign({
|
|
6830
6830
|
label: item.name,
|
|
6831
6831
|
value: item._id
|
|
6832
|
-
} : {};
|
|
6832
|
+
}, item) : {};
|
|
6833
6833
|
})) || []);
|
|
6834
6834
|
} else {
|
|
6835
6835
|
setSelectedCollectionItems([]);
|