small toggle fix for list & objects
This commit is contained in:
0
docker/DockerfileCli
Normal file
0
docker/DockerfileCli
Normal file
@@ -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