mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
small toggle fix for list & objects
This commit is contained in:
@@ -287,6 +287,7 @@
|
||||
arg.value = undefined
|
||||
}
|
||||
arg.expr = undefined
|
||||
arg.type = 'static'
|
||||
}
|
||||
} else {
|
||||
if (arg) {
|
||||
|
||||
@@ -662,7 +662,10 @@ export function toCamel(s: string) {
|
||||
})
|
||||
}
|
||||
|
||||
export function cleanExpr(expr: string): string {
|
||||
export function cleanExpr(expr: string | undefined): string {
|
||||
if (!expr) {
|
||||
return ''
|
||||
}
|
||||
return expr
|
||||
.split('\n')
|
||||
.filter((x) => x != '' && !x.startsWith(`import `))
|
||||
|
||||
Reference in New Issue
Block a user