Skip to content

Commit

Permalink
fix: resolving error thrown when creating new version from doc header
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanl17 committed Oct 24, 2024
1 parent 268f1f9 commit 4e2433b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {type BadgeTone, useClickOutsideEvent, useGlobalKeyDown} from '@sanity/ui
import {memo, type MouseEvent, type ReactNode, useCallback, useMemo, useRef, useState} from 'react'
import {
DiscardVersionDialog,
getBundleIdFromReleaseId,
getVersionId,
ReleaseAvatar,
type ReleaseDocument,
Expand Down Expand Up @@ -112,7 +111,7 @@ export const VersionChip = memo(function VersionChip(props: {

const handleAddVersion = useCallback(
async (targetRelease: string) => {
createVersion(getBundleIdFromReleaseId(targetRelease))
createVersion(targetRelease)
close()
},
[createVersion, close],
Expand Down

0 comments on commit 4e2433b

Please sign in to comment.