refactor(store): use null instead of undefined for optional state properties

* remove setConnectionNodeId action
This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 188156dd0b
commit 728046505c
13 changed files with 119 additions and 99 deletions
+2 -2
View File
@@ -47,9 +47,9 @@ export interface Edge<T = any> extends Element<T> {
/** Target node id */
target: string
/** Source handle id */
sourceHandle?: string
sourceHandle: string | null
/** Target handle id */
targetHandle?: string
targetHandle: string | null
/** Source position */
sourcePosition?: Position
/** Target position */