utopia-ui 3.0.0-alpha.68 → 3.0.0-alpha.69
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3211,7 +3211,7 @@ var Layer = function (_a) {
|
|
3211
3211
|
if (allTagsLoaded && allItemsLoaded) {
|
3212
3212
|
(_a = item[itemTextField].toLocaleLowerCase().match(hashTagRegex)) === null || _a === void 0 ? void 0 : _a.map(function (tag) {
|
3213
3213
|
if ((!tags.find(function (t) { return t.name.toLocaleLowerCase() === tag.slice(1).toLocaleLowerCase(); })) && !newTagsToAdd.find(function (t) { return t.name.toLocaleLowerCase() === tag.slice(1).toLocaleLowerCase(); })) {
|
3214
|
-
var newTag_1 = { name: tag.slice(1).toLocaleLowerCase(), color: randomColor() };
|
3214
|
+
var newTag_1 = { id: crypto.randomUUID(), name: tag.slice(1).toLocaleLowerCase(), color: randomColor() };
|
3215
3215
|
setNewTagsToAdd(function (current) { return __spreadArray(__spreadArray([], current, true), [newTag_1], false); });
|
3216
3216
|
}
|
3217
3217
|
});
|