1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Prevent views with same name but different casing

This commit is contained in:
Andrew Kingston 2023-08-30 15:40:26 +01:00
parent cefb57d78a
commit db28b29cf7

View file

@ -8,8 +8,8 @@
let name
$: views = Object.keys($definition?.views || {})
$: nameExists = views.includes(name?.trim())
$: views = Object.keys($definition?.views || {}).map(x => x.toLowerCase())
$: nameExists = views.includes(name?.trim().toLowerCase())
const enrichSchema = schema => {
// We need to sure that "visible" is set to true for any fields which have