Refactor code

This commit is contained in:
Tyler Long
2018-03-09 13:46:58 +08:00
parent 9c101eb8af
commit 53b97b3ffa
2 changed files with 3 additions and 6 deletions

View File

@@ -176,10 +176,8 @@ export const addEdges = function (edges, g) {
if (typeof edge.interpolate !== 'undefined') {
edgeData.lineInterpolate = edge.interpolate
} else {
if (typeof edges.defaultInterpolate !== 'undefined') {
edgeData.lineInterpolate = edges.defaultInterpolate
}
} else if (typeof edges.defaultInterpolate !== 'undefined') {
edgeData.lineInterpolate = edges.defaultInterpolate
}
if (typeof edge.text === 'undefined') {