Skip to content

Commit

Permalink
chore: update change log, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
robproject committed Nov 3, 2024
1 parent 653b796 commit 86dce42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"packageName": "@stonecrop/node-editor",
"comment": "Add handling for edge creation and removal.",
"type": "none"
"type": "patch"
}
],
"packageName": "@stonecrop/node-editor"
Expand Down
2 changes: 2 additions & 0 deletions node_editor/src/components/StateEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const elements = computed<FlowElements>({
for (const [key, value] of Object.entries(states.value)) {
if (value.on) {
for (const [edgeKey, edgeValue] of Object.entries(value.on)) {
// If the proxy array 'value.on' has more than one edge, 'edgeValue' will contain a proxy object
// where 'target' can be accessed. Otherwise, 'edgeValue' will be available directly.
const target = edgeValue.target || edgeValue
// TODO: handle typescript errors for both types of states
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
Expand Down

0 comments on commit 86dce42

Please sign in to comment.