@nocobase/flow-engine 2.0.0-beta.1 → 2.0.0-beta.2

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/lib/flowEngine.js CHANGED
@@ -724,12 +724,6 @@ const _FlowEngine = class _FlowEngine {
724
724
  */
725
725
  async loadModel(options) {
726
726
  if (!this.ensureModelRepository()) return;
727
- if (options == null ? void 0 : options.uid) {
728
- const local = this.getModel(options.uid);
729
- if (local) {
730
- return local;
731
- }
732
- }
733
727
  const model = this.findModelByParentId(options.parentId, options.subKey);
734
728
  if (model) {
735
729
  return model;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/flow-engine",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "A standalone flow engine for NocoBase, managing workflows, models, and actions.",
6
6
  "main": "lib/index.js",
@@ -8,8 +8,8 @@
8
8
  "dependencies": {
9
9
  "@formily/antd-v5": "1.x",
10
10
  "@formily/reactive": "2.x",
11
- "@nocobase/sdk": "2.0.0-beta.1",
12
- "@nocobase/shared": "2.0.0-beta.1",
11
+ "@nocobase/sdk": "2.0.0-beta.2",
12
+ "@nocobase/shared": "2.0.0-beta.2",
13
13
  "ahooks": "^3.7.2",
14
14
  "dayjs": "^1.11.9",
15
15
  "dompurify": "^3.0.2",
@@ -36,5 +36,5 @@
36
36
  ],
37
37
  "author": "NocoBase Team",
38
38
  "license": "AGPL-3.0",
39
- "gitHead": "b3d1f65848fc91e673372ee734dafe6b1cf80586"
39
+ "gitHead": "b77a33ee933ae6e09d2d5dce017ca15d8552d57b"
40
40
  }
package/src/flowEngine.ts CHANGED
@@ -866,12 +866,6 @@ export class FlowEngine {
866
866
  */
867
867
  async loadModel<T extends FlowModel = FlowModel>(options): Promise<T | null> {
868
868
  if (!this.ensureModelRepository()) return;
869
- if (options?.uid) {
870
- const local = this.getModel<T>(options.uid);
871
- if (local) {
872
- return local;
873
- }
874
- }
875
869
  const model = this.findModelByParentId(options.parentId, options.subKey);
876
870
  if (model) {
877
871
  return model as T;