fix(core): check if valid connection func exists

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-10 10:40:23 +01:00
committed by Braks
parent 5f4c8a8c57
commit 79a6fa318c
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ export default defineComponent({
const style = (attrs.style ?? {}) as CSSProperties
const slot = miniMapSlots[`node-${props.type}`]
if (slot) return slot!(props)
if (slot) {
return slot(props)
}
return h('rect', {
id: props.id,