fix(core): check if valid connection func exists
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user