chore(core): remove non-nullable assertion
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -367,8 +367,8 @@ export function useActions(
|
|||||||
: nextEdges
|
: nextEdges
|
||||||
|
|
||||||
state.edges = validEdges.reduce<GraphEdge[]>((res, edge) => {
|
state.edges = validEdges.reduce<GraphEdge[]>((res, edge) => {
|
||||||
const sourceNode = findNode(edge.source)!
|
const sourceNode = findNode(edge.source)
|
||||||
const targetNode = findNode(edge.target)!
|
const targetNode = findNode(edge.target)
|
||||||
|
|
||||||
const missingSource = !sourceNode || typeof sourceNode === 'undefined'
|
const missingSource = !sourceNode || typeof sourceNode === 'undefined'
|
||||||
const missingTarget = !targetNode || typeof targetNode === 'undefined'
|
const missingTarget = !targetNode || typeof targetNode === 'undefined'
|
||||||
|
|||||||
Reference in New Issue
Block a user