diff --git a/packages/sanity/src/core/util/draftUtils.ts b/packages/sanity/src/core/util/draftUtils.ts index 17b84aaed6b..763fe9c9d1b 100644 --- a/packages/sanity/src/core/util/draftUtils.ts +++ b/packages/sanity/src/core/util/draftUtils.ts @@ -85,7 +85,7 @@ export function getDraftId(id: string): DraftId { /** @internal */ export function getVersionId(id: string, bundle: string): string { if (isVersionId(id)) { - const [_versionPrefix, versionId, ...publishedId] = id.split('.') + const [_versionPrefix, versionId, ...publishedId] = id.split(PATH_SEPARATOR) if (versionId === bundle) return id return `${VERSION_PREFIX}${bundle}${PATH_SEPARATOR}${publishedId}` }