Prevent views with same name but different casing
This commit is contained in:
parent
cefb57d78a
commit
db28b29cf7
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
let name
|
let name
|
||||||
|
|
||||||
$: views = Object.keys($definition?.views || {})
|
$: views = Object.keys($definition?.views || {}).map(x => x.toLowerCase())
|
||||||
$: nameExists = views.includes(name?.trim())
|
$: nameExists = views.includes(name?.trim().toLowerCase())
|
||||||
|
|
||||||
const enrichSchema = schema => {
|
const enrichSchema = schema => {
|
||||||
// We need to sure that "visible" is set to true for any fields which have
|
// We need to sure that "visible" is set to true for any fields which have
|
||||||
|
|
Loading…
Reference in New Issue