Revert string keys

This commit is contained in:
barsdeveloper
2023-04-01 19:51:18 +02:00
parent bddd20fd6a
commit c379ea27f9
4 changed files with 4698 additions and 4698 deletions

View File

@@ -12,9 +12,9 @@ export default class ExecPinTemplate extends PinTemplate {
}
renderName() {
let pinName = this.element.entity["PinName"]
if (this.element.entity["PinFriendlyName"]) {
pinName = this.element.entity["PinFriendlyName"].toString()
let pinName = this.element.entity.PinName
if (this.element.entity.PinFriendlyName) {
pinName = this.element.entity.PinFriendlyName.toString()
} else if (pinName === "execute" || pinName === "then") {
return html``
}

View File

@@ -65,7 +65,7 @@ export default class PinTemplate extends ITemplate {
const content = html`
<div class="ueb-pin-content">
${this.isNameRendered ? this.renderName() : nothing}
${this.element.isInput() && !this.element.entity["bDefaultValueIsIgnored"] ? this.renderInput() : html``}
${this.element.isInput() && !this.element.entity.bDefaultValueIsIgnored ? this.renderInput() : html``}
</div>
`
return html`