Skip to content

Commit 1dec56c

Browse files
committed
[WIP] Fix property is not updating
1 parent 3a4304d commit 1dec56c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

query-by-graph/src/lib/rete/editor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)