Skip to content

Commit 24ed5c1

Browse files
authored
[cli] Make block text references to separate named types (#572)
1 parent 7f1af4d commit 24ed5c1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

packages/@sanity/cli/templates/moviedb/schemas/blockContent.js

+15-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,21 @@ export default {
3535
},
3636
{
3737
type: 'reference',
38-
title: 'Reference',
39-
to: [
40-
{title: 'Movie', type: 'movie'},
41-
{title: 'Person', type: 'person'},
42-
{title: 'Screening', type: 'screening'}
43-
]
38+
title: 'Movie',
39+
name: 'movieRef',
40+
to: [{type: 'movie'}]
41+
},
42+
{
43+
type: 'reference',
44+
title: 'Person',
45+
name: 'personRef',
46+
to: {type: 'person'}
47+
},
48+
{
49+
type: 'reference',
50+
title: 'Screening',
51+
name: 'screeningRef',
52+
to: {type: 'screening'}
4453
},
4554
{
4655
title: 'Image',

0 commit comments

Comments
 (0)