diff --git a/source/dagre.js b/source/dagre.js index fd26a9ad08..7827f8e819 100644 --- a/source/dagre.js +++ b/source/dagre.js @@ -1402,8 +1402,8 @@ dagre.layout = (nodes, edges, layout, state) => { || n1.in.length !== 1 || n0.out.length !== 1 || n1.out.length !== 1 - || n0.in[0].vNode.in.length == 0 - || n1.in[0].vNode.in.length == 0 + || n0.in[0].vNode.in.length === 0 + || n1.in[0].vNode.in.length === 0 ) { if (dirTotal === 3) { {