fix flow builder input transforms

This commit is contained in:
Ruben Fiszel
2023-09-08 00:47:05 +02:00
parent 1d71154c99
commit 678fd0cec4
@@ -47,11 +47,11 @@
let propertyType = getPropertyType(arg)
function updatePropertyType() {
propertyType = getPropertyType(arg)
}
// 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'