We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6859ed5 commit 6eafe16Copy full SHA for 6eafe16
packages/sanity/src/structure/components/paneItem/PaneItem.tsx
@@ -19,6 +19,7 @@ import {
19
import {
20
type FIXME,
21
type GeneralPreviewLayoutKey,
22
+ getPublishedId,
23
PreviewCard,
24
SanityDefaultPreview,
25
useDocumentPresence,
@@ -181,7 +182,7 @@ export function PaneItem(props: PaneItemProps) {
181
182
function PreloadDocumentPane(props: {documentId: string; documentType: string}) {
183
const {documentId, documentType} = props
184
// Preload the edit state for the document, and keep it alive until mouse leave
- useEditState(documentId, documentType)
185
+ useEditState(getPublishedId(documentId), documentType)
186
187
return null
188
}
0 commit comments