mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 00:02:42 +00:00
improve handling of toString arg in schema
This commit is contained in:
@@ -141,7 +141,9 @@
|
||||
defaultValue?: any,
|
||||
nnullable?: boolean
|
||||
) {
|
||||
console.log(value)
|
||||
if (label == 'toString' && typeof value == 'function') {
|
||||
value = undefined
|
||||
}
|
||||
if ((value == undefined || value == null) && !ignoreValueUndefined) {
|
||||
value = defaultValue
|
||||
if (defaultValue === undefined || defaultValue === null) {
|
||||
|
||||
@@ -120,6 +120,7 @@
|
||||
schema.properties = n
|
||||
}
|
||||
let nkeys = Object.keys(schema.properties ?? {})
|
||||
|
||||
if (!deepEqual(keys, nkeys)) {
|
||||
keys = nkeys
|
||||
dispatch('change')
|
||||
|
||||
Reference in New Issue
Block a user