utopia-ui 3.0.0-alpha.140 → 3.0.0-alpha.141

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 CHANGED
@@ -597,11 +597,11 @@ function useTagsManager(initialTags) {
597
597
  itemTags.push(tags.find(function (t) { return t.name.toLocaleLowerCase() === tag.slice(1).toLocaleLowerCase(); }));
598
598
  }
599
599
  });
600
- ((_c = item.layer) === null || _c === void 0 ? void 0 : _c.itemOffersField) && getValue(item, item.layer.itemOffersField).map(function (o) {
600
+ ((_c = item.layer) === null || _c === void 0 ? void 0 : _c.itemOffersField) && getValue(item, item.layer.itemOffersField) && getValue(item, item.layer.itemOffersField).map(function (o) {
601
601
  var offer = tags.find(function (t) { return t.id === o.tags_id; });
602
602
  offer && itemTags.push(offer);
603
603
  });
604
- ((_d = item.layer) === null || _d === void 0 ? void 0 : _d.itemNeedsField) && getValue(item, item.layer.itemNeedsField).map(function (n) {
604
+ ((_d = item.layer) === null || _d === void 0 ? void 0 : _d.itemNeedsField) && getValue(item, item.layer.itemNeedsField) && getValue(item, item.layer.itemNeedsField).map(function (n) {
605
605
  var need = tags.find(function (t) { return t.id === n.tags_id; });
606
606
  need && itemTags.push(need);
607
607
  });
@@ -1262,27 +1262,24 @@ function LoginPage() {
1262
1262
  var onLogin = function () { return __awaiter(_this, void 0, void 0, function () {
1263
1263
  return __generator(this, function (_a) {
1264
1264
  switch (_a.label) {
1265
- case 0:
1266
- console.log(email);
1267
- console.log(password);
1268
- return [4 /*yield*/, toast.promise(login({ email: email, password: password }), {
1269
- success: {
1270
- render: function (_a) {
1271
- var data = _a.data;
1272
- navigate("/");
1273
- return "Hi ".concat(data === null || data === void 0 ? void 0 : data.first_name);
1274
- },
1275
- // other options
1276
- icon: "✌️",
1265
+ case 0: return [4 /*yield*/, toast.promise(login({ email: email, password: password }), {
1266
+ success: {
1267
+ render: function (_a) {
1268
+ var data = _a.data;
1269
+ navigate("/");
1270
+ return "Hi ".concat(data === null || data === void 0 ? void 0 : data.first_name);
1277
1271
  },
1278
- error: {
1279
- render: function (_a) {
1280
- var data = _a.data;
1281
- return "".concat(data);
1282
- },
1272
+ // other options
1273
+ icon: "✌️",
1274
+ },
1275
+ error: {
1276
+ render: function (_a) {
1277
+ var data = _a.data;
1278
+ return "".concat(data);
1283
1279
  },
1284
- pending: 'logging in ...'
1285
- })];
1280
+ },
1281
+ pending: 'logging in ...'
1282
+ })];
1286
1283
  case 1:
1287
1284
  _a.sent();
1288
1285
  return [2 /*return*/];