From e7fa51a89efabf9c236a17b2dff3189982df3682 Mon Sep 17 00:00:00 2001 From: Jordan Lawrence Date: Tue, 10 Dec 2024 12:24:48 +0000 Subject: [PATCH] fix: preventing linking to version doc when release is archived/published --- .../core/releases/tool/components/ReleaseDocumentPreview.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/sanity/src/core/releases/tool/components/ReleaseDocumentPreview.tsx b/packages/sanity/src/core/releases/tool/components/ReleaseDocumentPreview.tsx index 7010145e7ba2..1003b035fd6f 100644 --- a/packages/sanity/src/core/releases/tool/components/ReleaseDocumentPreview.tsx +++ b/packages/sanity/src/core/releases/tool/components/ReleaseDocumentPreview.tsx @@ -15,6 +15,7 @@ interface ReleaseDocumentPreviewProps { releaseId: string previewValues: PreviewValue isLoading: boolean + revision?: string hasValidationError?: boolean } @@ -24,6 +25,7 @@ export function ReleaseDocumentPreview({ releaseId, previewValues, isLoading, + revision, hasValidationError, }: ReleaseDocumentPreviewProps) { const documentPresence = useDocumentPresence(documentId)