mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
fix import script from hub
This commit is contained in:
@@ -1646,8 +1646,7 @@ paths:
|
||||
type: string
|
||||
lockfile:
|
||||
type: string
|
||||
schema:
|
||||
type: string
|
||||
schema: {}
|
||||
language:
|
||||
type: string
|
||||
enum: [deno, python3, go]
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user