Ensure schema provided by DataProvider has name properties for all fields
This commit is contained in:
parent
b6a202f54f
commit
48c3b3a58d
|
@ -93,6 +93,13 @@
|
|||
} else {
|
||||
schema = {}
|
||||
}
|
||||
|
||||
// Ensure all schema fields have a name property
|
||||
Object.entries(schema).forEach(([key, value]) => {
|
||||
if (!value.name) {
|
||||
value.name = key
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue