convert from static to expr automatically on toggle

This commit is contained in:
Ruben Fiszel
2023-08-24 11:09:27 +02:00
parent 9977e91cee
commit b3946172fc
@@ -89,15 +89,8 @@
class="h-7"
bind:selected={componentInput.type}
on:selected={(e) => {
if (e.detail == 'connected' && !componentInput['connection']) {
$connectingInput = {
opened: true,
input: undefined,
hoveredComponent: undefined,
onConnect: applyConnection
}
} else if (
e.detail == 'eval' &&
if (
e.detail == 'evalv2' &&
componentInput['value'] != undefined &&
(componentInput['expr'] == '' || componentInput['expr'] == undefined)
) {