File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const locate: DocumentLocationResolver = (params, context) => {
17
17
const doc$ = context . documentStore . listenQuery (
18
18
`*[_id == $id && defined(slug.current)][0]{slug,title}` ,
19
19
params ,
20
- { perspective : 'previewDrafts ' } ,
20
+ { perspective : 'drafts ' } ,
21
21
) as Observable < {
22
22
slug : { current : string }
23
23
title : string | null
@@ -46,7 +46,7 @@ export const locate: DocumentLocationResolver = (params, context) => {
46
46
const doc$ = context . documentStore . listenQuery (
47
47
`*[_type == "post" && references($id) && defined(slug.current)]{slug,title}` ,
48
48
params ,
49
- { perspective : 'previewDrafts ' } ,
49
+ { perspective : 'drafts ' } ,
50
50
) as Observable <
51
51
{
52
52
slug : { current : string }
You can’t perform that action at this time.
0 commit comments