awing-library 2.1.134 → 2.1.135

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.
@@ -167,7 +167,9 @@ var CreateOrEdit = function (_a) {
167
167
  appHelper.snackbar('error', t('Page.DeprecatedTemplate'));
168
168
  return;
169
169
  }
170
- var params = [__assign(__assign({}, pageRoot), { viewEvents: pageRoot.views.map(function (x) { return x.events.map(function (e) { return (__assign(__assign({}, e), { viewNumber: x.viewNumber, pageId: pageRoot.page.pageId })); }); }).flat() })];
170
+ var params = [
171
+ __assign(__assign({}, pageRoot), { viewEvents: pageRoot.views.map(function (x, idx) { return x.events.map(function (e) { var _a; return (__assign(__assign({}, e), { viewNumber: ((_a = x.viewDatas[0]) === null || _a === void 0 ? void 0 : _a.viewNumber) || idx + 1, pageId: pageRoot.page.pageId })); }); }).flat() })
172
+ ];
171
173
  if (type === enums_1.PathType.EDIT)
172
174
  params.unshift(pageId);
173
175
  return service[type === enums_1.PathType.EDIT ? 'pagesPut' : 'pagesPost'].apply(service, params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.134",
3
+ "version": "2.1.135",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",