Skip to content

Commit d8dab71

Browse files
committed
update: rename
1 parent a14213a commit d8dab71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subworkflows/subworkflow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ export class Subworkflow extends BaseSubworkflow {
9191
config = {},
9292
Cls = Subworkflow,
9393
) {
94-
const idName = config.attributes?.name || name;
94+
const nameForIdGeneration = config.attributes?.name || name;
9595
const { functions, attributes, ...cleanConfig } = config;
9696

9797
return new Cls({
9898
...cleanConfig,
99-
_id: Cls.generateSubworkflowId(idName),
99+
_id: Cls.generateSubworkflowId(nameForIdGeneration),
100100
name,
101101
application: application.toJSON(),
102102
properties: lodash.sortedUniq(

0 commit comments

Comments
 (0)