small toggle fix for list & objects

This commit is contained in:
Ruben Fiszel
2024-06-26 15:50:27 +02:00
parent 4915e9ba97
commit fc08025643
3 changed files with 5 additions and 1 deletions
View File
@@ -287,6 +287,7 @@
arg.value = undefined
}
arg.expr = undefined
arg.type = 'static'
}
} else {
if (arg) {
+4 -1
View File
@@ -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 `))