rez_core 2.2.164 → 2.2.165

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.164",
3
+ "version": "2.2.165",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -124,17 +124,19 @@ export class WorkflowMetaService extends EntityServiceImpl {
124
124
  loggedInUser,
125
125
  );
126
126
 
127
- await this.taskService.createSystemNote(
128
- {
129
- reason_code: reason_code || '',
130
- remark: remark || '',
131
- mapped_entity_id,
132
- stage_id: currentStage.stage_id,
133
- action_id: currentStage.action_id,
134
- stage_group_id: currentStage.stage_group_id,
135
- },
136
- loggedInUser,
137
- );
127
+ if (currentStage) {
128
+ await this.taskService.createSystemNote(
129
+ {
130
+ reason_code: reason_code || '',
131
+ remark: remark || '',
132
+ mapped_entity_id,
133
+ stage_id: currentStage.stage_id,
134
+ action_id: currentStage.action_id,
135
+ stage_group_id: currentStage.stage_group_id,
136
+ },
137
+ loggedInUser,
138
+ );
139
+ }
138
140
 
139
141
  // Case 1: First stage – initialize
140
142
  if (!currentStage) {