Fixes Handle aggregate step when no subsequent input data shape is provided
@@ -719,7 +719,7 @@ export class CurrentFlowService {
const subsequent = this.getSubsequentStepWithDataShape(position);
this.fetchStepDescriptor(
step,
- subsequent.action.descriptor.inputDataShape,
+ typeof subsequent !== 'undefined' ? subsequent.action.descriptor.inputDataShape : undefined,
previous.action.descriptor.outputDataShape,
then
);
