utopia-ui 3.0.0-alpha.121 → 3.0.0-alpha.123
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 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3658,7 +3658,6 @@ var Layer = function (_a) {
|
|
|
3658
3658
|
var longitude = itemLongitudeField && item ? getValue(item, itemLongitudeField) : undefined;
|
|
3659
3659
|
var color1 = markerDefaultColor;
|
|
3660
3660
|
var color2 = "RGBA(35, 31, 32, 0.2)";
|
|
3661
|
-
console.log(getValue(item, itemColorField));
|
|
3662
3661
|
if (itemColorField && getValue(item, itemColorField) != null)
|
|
3663
3662
|
color1 = getValue(item, itemColorField);
|
|
3664
3663
|
else if (itemTags && itemTags[0]) {
|
|
@@ -3810,7 +3809,7 @@ function NavBar(_a) {
|
|
|
3810
3809
|
var _c = useState({}), userProfile = _c[0], setUserProfile = _c[1];
|
|
3811
3810
|
var items = useItems();
|
|
3812
3811
|
useEffect(function () {
|
|
3813
|
-
var profile = user && items.find(function (i) { var _a; return (i.user_created.id === user.id) && ((
|
|
3812
|
+
var profile = user && items.find(function (i) { var _a, _b; return (((_a = i.user_created) === null || _a === void 0 ? void 0 : _a.id) === user.id) && ((_b = i.layer) === null || _b === void 0 ? void 0 : _b.itemType.name) === "user"; });
|
|
3814
3813
|
profile ? setUserProfile(profile) : setUserProfile({ id: crypto.randomUUID(), name: user === null || user === void 0 ? void 0 : user.first_name, text: "" });
|
|
3815
3814
|
}, [user, items]);
|
|
3816
3815
|
useEffect(function () {
|