Skip to content

Commit

Permalink
[cli] Fix slug field options in movies template schema (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Drevon authored and bjoerge committed Mar 6, 2018
1 parent e230a93 commit 60e4802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions packages/@sanity/cli/templates/moviedb/schemas/movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default {
type: 'slug',
options: {
source: 'title',
maxLength: 96,
auto: true
maxLength: 100
}
},
{
Expand Down Expand Up @@ -62,7 +61,6 @@ export default {
of: [{type: 'crewMember'}]
}
],

preview: {
select: {
title: 'title',
Expand All @@ -72,7 +70,6 @@ export default {
castName1: 'castMembers.1.person.name'
},
prepare(selection) {

const year = selection.date && selection.date.split('-')[0]
const cast = [selection.castName0, selection.castName1].filter(Boolean).join(', ')

Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/cli/templates/moviedb/schemas/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default {
type: 'slug',
options: {
source: 'name',
maxLength: 96,
auto: true
maxLength: 100
}
},
{
Expand Down

0 comments on commit 60e4802

Please sign in to comment.