File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/core/src/composables Expand file tree Collapse file tree 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'
77interface NodeData < NodeType extends Node = GraphNode > {
88 id : string
99 type : NodeType [ 'type' ]
10- data : NonNullable < NodeType [ 'data' ] > | null
10+ data : NonNullable < NodeType [ 'data' ] >
1111}
1212
1313/**
@@ -42,7 +42,7 @@ export function useNodesData(_nodeIds: any): any {
4242 return {
4343 id : node . id ,
4444 type : node . type ,
45- data : node . data ?? null ,
45+ data : node . data ,
4646 }
4747 }
4848
@@ -58,7 +58,7 @@ export function useNodesData(_nodeIds: any): any {
5858 data . push ( {
5959 id : node . id ,
6060 type : node . type ,
61- data : node . data ?? null ,
61+ data : node . data ,
6262 } )
6363 }
6464 }
You can’t perform that action at this time.
0 commit comments