File tree Expand file tree Collapse file tree
query-by-graph/src/lib/rete Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,14 +92,13 @@ export async function createEditor(container: HTMLElement) {
9292 function SelectableConnectionBind ( props : { data : Schemes [ "Connection" ] } ) {
9393 const id = props . data . id ;
9494
95- const label = "connection" ;
9695 if ( increaseVariablePropCounter ) {
9796 increaseVariablePropCounter = false ;
9897 highestIdCount ++ ;
99- props . data . property = variableEntityConstructor ( highestIdCount . toString ( ) )
100- } else {
101- props . data . property = variableEntityConstructor ( ( highestIdCount + 1 ) . toString ( ) )
10298 }
99+ props . data . property = variableEntityConstructor ( highestIdCount . toString ( ) )
100+
101+ const label = "connection" ;
103102
104103 // Initialize the custom connection with the custom props
105104 // and connect it to our editor events
@@ -125,6 +124,7 @@ export async function createEditor(container: HTMLElement) {
125124 } ,
126125 onChanged : ( value : EntityType ) => {
127126 props . data . property = value ;
127+ area . update ( "connection" , id ) ;
128128 }
129129 } ) ;
130130 }
You can’t perform that action at this time.
0 commit comments