diff --git a/sanityv3/schemas/documents/magazine.ts b/sanityv3/schemas/documents/magazine.ts index e11a5da26..7a3c7bf00 100644 --- a/sanityv3/schemas/documents/magazine.ts +++ b/sanityv3/schemas/documents/magazine.ts @@ -180,9 +180,7 @@ export default { { title: 'Title ', name: 'titleAsc', - // Yes, this will add a warning in the console, but we still need the [0] since it's a rich text editor - // Might be worth to look into if it is a better way of sorting rich text editors - by: [{ field: 'title[0].children[0].text', direction: 'asc' }], + by: [{ field: 'title', direction: 'asc' }], }, ], preview: { diff --git a/sanityv3/schemas/documents/page.ts b/sanityv3/schemas/documents/page.ts index e00c7b8cb..10cbf4eb2 100644 --- a/sanityv3/schemas/documents/page.ts +++ b/sanityv3/schemas/documents/page.ts @@ -91,9 +91,7 @@ export default { { title: 'Title ', name: 'titleAsc', - // Yes, this will add a warning in the console, but we still need the [0] since it's a rich text editor - // Might be worth to look into if it is a better way of sorting rich text editors - by: [{ field: 'title[0].children[0].text', direction: 'asc' }], + by: [{ field: 'title', direction: 'asc' }], }, ], preview: { diff --git a/sanityv3/schemas/objects/background/imageBackground.tsx b/sanityv3/schemas/objects/background/imageBackground.tsx index 0bcf5b060..7f62d660d 100644 --- a/sanityv3/schemas/objects/background/imageBackground.tsx +++ b/sanityv3/schemas/objects/background/imageBackground.tsx @@ -33,10 +33,6 @@ export default defineType({ name: 'useAnimation', type: 'boolean', description: 'Animates content over the background image.', - hidden: ({ parent }: any) => { - console.log('parent in image background', parent) - return false - }, }), defineField({ title: 'Apply light gradient',