@@ -48,6 +48,7 @@ import {
4848} from '../types' ;
4949import { LocalizationProviderService } from '../services/localization-provider.service' ;
5050import { LocalizationPipe } from '../pipes/localization.pipe' ;
51+ import { ConditionInput } from '../services' ;
5152@Component ( {
5253 selector : 'workflow-builder' ,
5354 templateUrl : './builder.component.html' ,
@@ -487,6 +488,14 @@ export class BuilderComponent<E> implements OnInit, OnChanges {
487488 case ActionTypes . ChangeColumnValueAction :
488489 const columnExists = ! ! node . node . state . get ( 'column' ) ;
489490 let valueExists = false ;
491+ const valueTypeIsAnyValue =
492+ node . node . state . get ( 'valueType' ) === ValueTypes . AnyValue ;
493+ let conditionExist = false ;
494+ if ( node . node . prompts . includes ( ConditionInput . identifier ) ) {
495+ conditionExist = ! ! node . node . state . get ( 'condition' ) ;
496+ } else {
497+ conditionExist = true ;
498+ }
490499 if ( typeof node . node . state . get ( 'value' ) !== 'undefined' ) {
491500 valueExists = true ;
492501 } else if (
@@ -496,9 +505,11 @@ export class BuilderComponent<E> implements OnInit, OnChanges {
496505 } else {
497506 valueExists = ! ! node . node . state . get ( 'value' ) ;
498507 }
499- const valueTypeIsAnyValue =
500- node . node . state . get ( 'valueType' ) === ValueTypes . AnyValue ;
501- isValid = columnExists && ( valueExists || valueTypeIsAnyValue ) ;
508+
509+ isValid =
510+ columnExists &&
511+ ( valueExists || valueTypeIsAnyValue ) &&
512+ conditionExist ;
502513 break ;
503514 case EventTypes . OnIntervalEvent :
504515 const intervalExists = ! ! node . node . state . get ( 'interval' ) ;
0 commit comments