@coding-flow/flow-approval-presenter 0.0.8 → 0.0.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.
@@ -69,16 +69,19 @@ class FlowActionPresenter {
69
69
  actionId
70
70
  };
71
71
  const recordId = await this.api.create(createRequest, this.mockKey);
72
- if (this.state.flow) this.state.flow.recordId = recordId;
73
- const actionRequest = {
74
- formData,
75
- recordId,
76
- advice: {
77
- actionId,
78
- ...params
79
- }
80
- };
81
- return await this.api.action(actionRequest, this.mockKey);
72
+ console.log('create recordId:', recordId);
73
+ if (recordId) {
74
+ if (this.state.flow) this.state.flow.recordId = recordId;
75
+ const actionRequest = {
76
+ formData,
77
+ recordId,
78
+ advice: {
79
+ actionId,
80
+ ...params
81
+ }
82
+ };
83
+ return await this.api.action(actionRequest, this.mockKey);
84
+ }
82
85
  }
83
86
  }
84
87
  getCurrentFormData() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-flow/flow-approval-presenter",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "flow-engine approval presenter framework ",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -36,11 +36,11 @@
36
36
  "dayjs": "^1.11.19",
37
37
  "immer": "^11.1.3",
38
38
  "react-redux": "^9.2.0",
39
- "@coding-flow/flow-core": "0.0.8",
40
- "@coding-flow/flow-types": "0.0.8"
39
+ "@coding-flow/flow-core": "0.0.9",
40
+ "@coding-flow/flow-types": "0.0.9"
41
41
  },
42
42
  "devDependencies": {
43
- "@coding-flow/flow-types": "0.0.8"
43
+ "@coding-flow/flow-types": "0.0.9"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "rslib build",