feat: action filtering now takes into consideration output data shape too.
@@ -113,13 +113,16 @@ export class IntegrationSelectActionComponent implements OnInit, OnDestroy {
this.actions$ = this.connector$
.filter(connector => connector !== undefined)
.switchMap(connector => [connector.actions.filter(action => action.pattern === 'From')]);
- }
-
- if (this.currentStep > this.currentFlowService.getFirstPosition()
- && this.currentStep <= this.currentFlowService.getLastPosition()) {
+ } else if (this.currentStep === this.currentFlowService.getLastPosition()) {
+ this.actions$ = this.connector$
+ .filter(connector => connector !== undefined)
+ .switchMap(connector => [connector.actions.filter(action => action.pattern === 'To'
+ && action.descriptor.outputDataShape.kind === 'none')]);
+ } else {
this.actions$ = this.connector$
.filter(connector => connector !== undefined)
- .switchMap(connector => [connector.actions.filter(action => action.pattern === 'To')]);
+ .switchMap(connector => [connector.actions.filter(action => action.pattern === 'To'
+ && action.descriptor.outputDataShape.kind !== 'none')]);
}
this.actionsSubscription = this.actions$.subscribe(_ =>
