Skip to content

Commit

Permalink
fix(corel): update getAllVersionsOfDocument dummy getter function (#7193
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pedrobonamin authored and bjoerge committed Jul 30, 2024
1 parent 103e11c commit 3f8ff0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sanity/src/core/bundles/util/dummyGetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export async function getAllVersionsOfDocument(
return documents.map((doc: SanityDocument) => {
const sluggedName = getBundleSlug(doc._id)
const bundle = bundles?.find((b) => b.slug === sluggedName)
return {
name: speakingurl(sluggedName),
const version: Partial<BundleDocument> = {
slug: speakingurl(sluggedName),
title: bundle?.title || sluggedName,
hue: bundle?.hue || 'gray',
icon: bundle?.icon || 'cube',
//publishAt: bundle?.publishAt,
}
return version
})
})
}
Expand Down

0 comments on commit 3f8ff0f

Please sign in to comment.