This commit is contained in:
barsdeveloper
2024-12-11 23:23:23 +02:00
parent 3de0e74ef0
commit e405a7245d
26 changed files with 471 additions and 181 deletions

View File

@@ -35,7 +35,7 @@ export default class EnumPinTemplate extends IInputPinTemplate {
: [k, Utility.formatStringName(k)]
)
?? []
const defaultEntry = this.element.getDefaultValue().toString()
const defaultEntry = this.element.getDefaultValue()?.toString()
if (!this.#dropdownEntries.find(([k, v]) => k === defaultEntry)) {
this.#dropdownEntries.push([defaultEntry, Utility.formatStringName(defaultEntry)])
}

View File

@@ -143,9 +143,7 @@ export default class PinTemplate extends ITemplate {
}
isInputRendered() {
return this.element.isInput()
&& !this.element.entity.bDefaultValueIsIgnored?.valueOf()
&& !this.element.entity.PinType.bIsReference?.valueOf()
return this.element.isInput() && !this.element.entity.PinType.bIsReference?.valueOf()
}
renderInput() {