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 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