Skip to content

Commit

Permalink
fix(desk): pass whole schema type to item and list builder
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Sep 14, 2022
1 parent 2e19691 commit 0700476
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function getDocumentTypeListItem(
return new ListItemBuilder(context)
.id(typeName)
.title(title)
.schemaType(typeName)
.schemaType(type)
.child((id, childContext) => {
const parent = childContext.parent as Collection
const parentItem = isList(parent)
Expand Down Expand Up @@ -101,7 +101,7 @@ export function getDocumentTypeList(
.title(spec.title || title)
.filter('_type == $type')
.params({type: typeName})
.schemaType(typeName)
.schemaType(type)
.showIcons(showIcons)
.defaultOrdering(DEFAULT_SELECTED_ORDERING_OPTION.by)
.menuItemGroups(
Expand Down

0 comments on commit 0700476

Please sign in to comment.