fix import script from hub

This commit is contained in:
Ruben Fiszel
2022-10-21 19:43:53 +02:00
parent 8f40d3b117
commit 9ddfa9a59d
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1646,8 +1646,7 @@ paths:
type: string
lockfile:
type: string
schema:
type: string
schema: {}
language:
type: string
enum: [deno, python3, go]
+1 -1
View File
@@ -13,7 +13,7 @@ export async function loadSchema(path: string): Promise<Schema> {
await inferArgs('deno', content ?? '', newSchema)
return newSchema
} else {
return JSON.parse(schema ?? "{}")
return schema ?? emptySchema()
}
} else {
const script = await ScriptService.getScriptByPath({