Fix bug relative to link location

This commit is contained in:
barsdeveloper
2023-05-20 14:03:21 +02:00
parent 69660a84fa
commit 62b356781e
4 changed files with 35 additions and 13 deletions

View File

@@ -37,6 +37,18 @@ export default class PinTemplate extends ITemplate {
isNameRendered = true
/** @param {PinElement<T>} element */
initialize(element) {
super.initialize(element)
if (this.element.nodeElement) {
const nodeTemplate = this.element.nodeElement.template
this.isNameRendered = !(
nodeTemplate instanceof VariableConversionNodeTemplate
|| nodeTemplate instanceof VariableOperationNodeTemplate
)
}
}
setup() {
super.setup()
this.element.nodeElement = this.element.closest("ueb-node")