mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-08 16:02:30 +00:00
fix bugs removing args from schema
This commit is contained in:
@@ -162,7 +162,9 @@
|
||||
await inferArgs(lang, editor.getCode(), schema)
|
||||
schema = schema
|
||||
|
||||
isDefault.forEach((key) => (args[key] = schema.properties[key].default))
|
||||
isDefault
|
||||
.filter((key) => schema.properties[key] != undefined)
|
||||
.forEach((key) => (args[key] = schema.properties[key].default))
|
||||
for (const key of Object.keys(args)) {
|
||||
if (schema.properties[key] == undefined) {
|
||||
delete args[key]
|
||||
|
||||
Reference in New Issue
Block a user