@dexteel/mesf-core 4.10.4 → 4.10.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.10.5](https://github.com/dexteel/mesf-core-frontend/compare/v4.10.4...v4.10.5) (2024-05-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **trending:** Load view bug when you add and remove a view tag ([eb8a155](https://github.com/dexteel/mesf-core-frontend/commit/eb8a1553cad19fa9be106716f8958728fc1507dc))
11
+
5
12
  ### [4.10.4](https://github.com/dexteel/mesf-core-frontend/compare/v4.10.2...v4.10.4) (2024-04-29)
6
13
 
7
14
  ## 4.10.3
package/dist/index.esm.js CHANGED
@@ -10835,7 +10835,7 @@ var TrendingChart = function (_a) {
10835
10835
  });
10836
10836
  var updatedSeries = series.map(function (serie, index) {
10837
10837
  var tag = viewTags[index];
10838
- var yAxisTagId = seriesVsTags.current[tag.TagId];
10838
+ var yAxisTagId = seriesVsTags.current[tag === null || tag === void 0 ? void 0 : tag.TagId];
10839
10839
  return {
10840
10840
  yAxisID: "y-axis-".concat(yAxisTagId),
10841
10841
  data: serie.map(function (sample) { return ({
@@ -10999,7 +10999,7 @@ var TrendingsPage = function (props) {
10999
10999
  case 0: return [4 /*yield*/, getViews(null)];
11000
11000
  case 1:
11001
11001
  viewsResp = _a.sent();
11002
- if (!viewsResp.ok) return [3 /*break*/, 3];
11002
+ if (!viewsResp.ok) return [3 /*break*/, 4];
11003
11003
  setViews(viewsResp.data.tables[0].rows);
11004
11004
  lastCreated = void 0;
11005
11005
  if (!viewSelected || forceReload) {
@@ -11010,6 +11010,7 @@ var TrendingsPage = function (props) {
11010
11010
  else {
11011
11011
  lastCreated = viewSelected;
11012
11012
  }
11013
+ if (!lastCreated) return [3 /*break*/, 3];
11013
11014
  return [4 /*yield*/, getViewTags(lastCreated.ViewId)];
11014
11015
  case 2:
11015
11016
  viewTagsResp = _a.sent();
@@ -11025,11 +11026,12 @@ var TrendingsPage = function (props) {
11025
11026
  else {
11026
11027
  setError(viewTagsResp.message);
11027
11028
  }
11028
- return [3 /*break*/, 4];
11029
- case 3:
11029
+ _a.label = 3;
11030
+ case 3: return [3 /*break*/, 5];
11031
+ case 4:
11030
11032
  setError(viewsResp.message);
11031
- _a.label = 4;
11032
- case 4: return [2 /*return*/];
11033
+ _a.label = 5;
11034
+ case 5: return [2 /*return*/];
11033
11035
  }
11034
11036
  });
11035
11037
  });