utopia-ui 3.0.0-alpha.154 → 3.0.0-alpha.155
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4984,7 +4984,8 @@ function OverlayItemProfileSettings() {
|
|
4984
4984
|
});
|
4985
4985
|
needs_updates = [];
|
4986
4986
|
needs === null || needs === void 0 ? void 0 : needs.map(function (n) {
|
4987
|
-
var
|
4987
|
+
var _a;
|
4988
|
+
var existingNeed = (_a = item === null || item === void 0 ? void 0 : item.needs) === null || _a === void 0 ? void 0 : _a.find(function (t) { return t.tags_id === n.id; });
|
4988
4989
|
existingNeed && needs_updates.push(existingNeed.id);
|
4989
4990
|
!existingNeed && needs_updates.push({ items_id: item === null || item === void 0 ? void 0 : item.id, tags_id: n.id });
|
4990
4991
|
!existingNeed && !tags.some(function (t) { return t.id === n.id; }) && addTag(__assign(__assign({}, n), { offer_or_need: true }));
|