improve handling of toString arg in schema

This commit is contained in:
Ruben Fiszel
2024-10-11 15:55:02 +02:00
parent be112408e7
commit 7e754a1e50
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -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')