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
1 changed files with 2 additions and 2 deletions

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