fix flow builder input transforms

This commit is contained in:
Ruben Fiszel
2023-09-08 00:51:09 +02:00
parent a2c0bede49
commit c6cc8769ae
@@ -47,11 +47,11 @@
let propertyType = getPropertyType(arg)
// function updatePropertyType() {
// propertyType = arg.type
// }
function updatePropertyType() {
propertyType = arg.type
}
// $: arg.type !== propertyType && updatePropertyType()
$: arg?.type !== propertyType && updatePropertyType()
function getPropertyType(arg: InputTransform | any): 'static' | 'javascript' {
let type: 'static' | 'javascript' = arg?.type ?? 'static'