@@ -23,12 +23,8 @@ export const State = (props: StateProps) => {
2323 const handleClick = ( e : any ) => {
2424 e . stopPropagation ( ) ; // so that click/touch event will be fired on the state only and not on the container itself
2525
26- if ( props ?. core ?. actionState === "Normal" ) {
27- console . log ( "Box handleClick Normal" , props ) ;
28- props ?. core ?. handleSelect ( e ) ;
29- } else if ( props ?. core ?. actionState === "Add Transition" ) {
30- console . log ( "Box handleClick Add Transition" , props ) ;
31-
26+ if ( props ?. core ?. actionState === "Normal" ) props ?. core ?. handleSelect ( e ) ;
27+ else if ( props ?. core ?. actionState === "Add Transition" ) {
3228 // restrict adding of new transition between states where a transition already exists
3329 if (
3430 ! dataContext ?. transitions . find (
@@ -37,8 +33,8 @@ export const State = (props: StateProps) => {
3733 transition . end === props . state . id
3834 )
3935 ) {
40- console . log ( "Box handleClick Add Transition setTransitions" , props ) ;
4136 const isSelfTransition = props ?. core ?. selected ?. id === props . state . id ;
37+
4238 dataContext ?. setTransitions ( ( transitions : TransitionModel [ ] ) => [
4339 ...transitions ,
4440 new TransitionModel ( {
@@ -56,8 +52,7 @@ export const State = (props: StateProps) => {
5652 } ) ,
5753 ] ) ;
5854 }
59- } else if ( props ?. core ?. actionState === "Remove Transitions" ) {
60- console . log ( "Box handleClick Remove Transitions" , props ) ;
55+ } else if ( props ?. core ?. actionState === "Remove Transitions" )
6156 dataContext ?. setTransitions ( ( transitions : TransitionModel [ ] ) =>
6257 transitions . filter (
6358 ( transition ) =>
@@ -67,10 +62,8 @@ export const State = (props: StateProps) => {
6762 )
6863 )
6964 ) ;
70- }
7165 } ;
7266
73- console . log ( "changing background color now" , props ?. core ?. actionState ) ;
7467 let background = null ;
7568 if ( props ?. core ?. selected && props ?. core ?. selected ?. id === props . state . id ) {
7669 background = stateSelectedColor ;
0 commit comments