File tree 2 files changed +8
-3
lines changed
packages/core/src/composables
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @vue-flow/core " : minor
3
+ ---
4
+
5
+ Remove ` null ` as possible return type of data in ` useNodesData `
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { useVueFlow } from './useVueFlow'
7
7
interface NodeData < NodeType extends Node = GraphNode > {
8
8
id : string
9
9
type : NodeType [ 'type' ]
10
- data : NonNullable < NodeType [ 'data' ] > | null
10
+ data : NonNullable < NodeType [ 'data' ] >
11
11
}
12
12
13
13
/**
@@ -42,7 +42,7 @@ export function useNodesData(_nodeIds: any): any {
42
42
return {
43
43
id : node . id ,
44
44
type : node . type ,
45
- data : node . data ?? null ,
45
+ data : node . data ,
46
46
}
47
47
}
48
48
@@ -58,7 +58,7 @@ export function useNodesData(_nodeIds: any): any {
58
58
data . push ( {
59
59
id : node . id ,
60
60
type : node . type ,
61
- data : node . data ?? null ,
61
+ data : node . data ,
62
62
} )
63
63
}
64
64
}
You can’t perform that action at this time.
0 commit comments