Skip to content

Commit

Permalink
Merge branch 'malj/2615' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Nov 1, 2024
2 parents 93c0c8c + 702c43a commit fe5850c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions sanityv3/schemas/documents/magazine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 1 addition & 3 deletions sanityv3/schemas/documents/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 0 additions & 4 deletions sanityv3/schemas/objects/background/imageBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit fe5850c

Please sign in to comment.