chore: lint files

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-11 20:28:02 +02:00
committed by Braks
parent ab18bbc7d8
commit 5560949ed1
23 changed files with 247 additions and 80 deletions
@@ -25,7 +25,9 @@ const {
const sourceNode = controlledComputed(
() => connectionStartHandle?.nodeId,
() => {
if (connectionStartHandle?.nodeId) return findNode(connectionStartHandle.nodeId)
if (connectionStartHandle?.nodeId) {
return findNode(connectionStartHandle.nodeId)
}
return false
},
@@ -74,7 +76,9 @@ function getType(type?: string, template?: GraphEdge['template']) {
}
}
}
if (edgeType && typeof edgeType !== 'string') return edgeType
if (edgeType && typeof edgeType !== 'string') {
return edgeType
}
const slot = slots?.[`edge-${name}`]
if (!slot) {
@@ -12,8 +12,11 @@ const markers = computed(() => {
if (marker) {
const markerId = getMarkerId(marker, vueFlowId)
if (!ids.includes(markerId)) {
if (typeof marker === 'object') markers.push({ ...marker, id: markerId, color: marker.color || defaultColor })
else markers.push({ id: markerId, color: defaultColor, type: marker as MarkerType })
if (typeof marker === 'object') {
markers.push({ ...marker, id: markerId, color: marker.color || defaultColor })
} else {
markers.push({ id: markerId, color: defaultColor, type: marker as MarkerType })
}
ids.push(markerId)
}
}