mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 16:03:21 +00:00
fix removing element from schemaeditor without resetting all required
This commit is contained in:
@@ -108,11 +108,7 @@
|
||||
if (Object.keys(schema.properties).includes(argName)) {
|
||||
delete schema.properties[argName]
|
||||
|
||||
const requiredIndex = schema.required.findIndex((arg) => arg === argName)
|
||||
|
||||
if (requiredIndex > -1) {
|
||||
schema.required = schema.required.slice(requiredIndex, 1)
|
||||
}
|
||||
schema.required = schema.required.filter((arg) => arg !== argName)
|
||||
|
||||
schema = schema
|
||||
schemaString = JSON.stringify(schema, null, '\t')
|
||||
|
||||
Reference in New Issue
Block a user