Skip to content

Commit a210828

Browse files
committed
chore: cleanup
1 parent 2cca6b6 commit a210828

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dist/js/subworkflows/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function createSubworkflow({
228228
dynamicSubworkflow = null
229229
} = subworkflowData;
230230
unitConfigs.forEach(_config => {
231-
if (config.index !== undefined) _config.config = {
231+
_config.config = {
232232
...(_config.config || {}),
233233
subworkflowIndex: config.index
234234
};

src/js/subworkflows/create.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ function createSubworkflow({
166166
const { name, units: unitConfigs, config = {}, dynamicSubworkflow = null } = subworkflowData;
167167

168168
unitConfigs.forEach((_config) => {
169-
if (config.index !== undefined)
170-
_config.config = { ...(_config.config || {}), subworkflowIndex: config.index };
169+
_config.config = { ...(_config.config || {}), subworkflowIndex: config.index };
171170
units.push(createUnit({ config: _config, application, unitBuilders, unitFactoryCls }));
172171
});
173172
if (dynamicSubworkflow) {

0 commit comments

Comments
 (0)