awing-library 2.1.115-beta → 2.1.116-beta

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.
@@ -141,7 +141,7 @@ var CreateOrEdit = function (_a) {
141
141
  .directoriesGetByObjectTypeCode(Enum_1.DirectoryRoot[pageCode === enums_1.PageCode.Lgn ? 'PageLogin' : 'PageWelcome'])
142
142
  .then(function (res) {
143
143
  setDirectories(res);
144
- if (!pageRoot.page.directoryId)
144
+ if (!pageRoot.page.directoryId && !pageRoot.page.pageId)
145
145
  setPageRoot((0, immer_1.default)(function (draf) {
146
146
  var _a;
147
147
  draf.page.directoryId = ((_a = (0, lodash_1.minBy)(res, 'level')) === null || _a === void 0 ? void 0 : _a.directoryId) || '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.115-beta",
3
+ "version": "2.1.116-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",