@nocobase/plugin-ui-schema-storage 0.18.0-alpha.8 → 0.18.0-alpha.9

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.
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.18.0-alpha.8",
3
- "@nocobase/database": "0.18.0-alpha.8",
4
- "@nocobase/cache": "0.18.0-alpha.8",
5
- "@nocobase/utils": "0.18.0-alpha.8",
2
+ "@nocobase/client": "0.18.0-alpha.9",
3
+ "@nocobase/database": "0.18.0-alpha.9",
4
+ "@nocobase/cache": "0.18.0-alpha.9",
5
+ "@nocobase/utils": "0.18.0-alpha.9",
6
6
  "lodash": "4.17.21",
7
- "@nocobase/server": "0.18.0-alpha.8",
8
- "@nocobase/actions": "0.18.0-alpha.8",
9
- "@nocobase/resourcer": "0.18.0-alpha.8",
7
+ "@nocobase/server": "0.18.0-alpha.9",
8
+ "@nocobase/actions": "0.18.0-alpha.9",
9
+ "@nocobase/resourcer": "0.18.0-alpha.9",
10
10
  "@formily/json-schema": "2.3.0"
11
11
  };
@@ -361,6 +361,9 @@ const _UiSchemaRepository = class _UiSchemaRepository extends import_database.Re
361
361
  }
362
362
  async duplicate(uid2, options) {
363
363
  const s = await this.getJsonSchema(uid2, { ...options, includeAsyncNode: true });
364
+ if (!(s == null ? void 0 : s["x-uid"])) {
365
+ return null;
366
+ }
364
367
  this.regenerateUid(s);
365
368
  return this.insert(s, options);
366
369
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "UI schema 存储服务",
5
5
  "description": "Provides centralized UI schema storage service",
6
6
  "description.zh-CN": "提供中心化的 UI schema 存储服务",
7
- "version": "0.18.0-alpha.8",
7
+ "version": "0.18.0-alpha.9",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "devDependencies": {
@@ -22,5 +22,5 @@
22
22
  "@nocobase/test": "0.x",
23
23
  "@nocobase/utils": "0.x"
24
24
  },
25
- "gitHead": "727d42f6f14e5f863831da3dbf3255ba1165b567"
25
+ "gitHead": "34ca0df4eede2e83fc86297b0fe19eba970e2b1b"
26
26
  }