Skip to content

Commit

Permalink
[structure] Disallow document type lists to show editor for different…
Browse files Browse the repository at this point in the history
… type (#975)
  • Loading branch information
rexxars committed Sep 24, 2018
1 parent fc110c6 commit b5d1452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/structure/src/documentTypeListItems.ts
Expand Up @@ -50,7 +50,7 @@ export function getDocumentTypeList(
.defaultOrdering(DEFAULT_SELECTED_ORDERING_OPTION.by)
.canHandleIntent(
(intentName, params): boolean =>
Boolean(intentName === 'edit' && params && params.id) ||
Boolean(intentName === 'edit' && params && params.id && params.type === typeName) ||
Boolean(intentName === 'create' && params && params.type === typeName)
)
.menuItemGroups([
Expand Down

0 comments on commit b5d1452

Please sign in to comment.