diff --git a/packages/sanity/src/desk/documentActions/HistoryRestoreAction.tsx b/packages/sanity/src/desk/documentActions/HistoryRestoreAction.tsx index 0c7d15eaf80..ad52381d11a 100644 --- a/packages/sanity/src/desk/documentActions/HistoryRestoreAction.tsx +++ b/packages/sanity/src/desk/documentActions/HistoryRestoreAction.tsx @@ -34,6 +34,11 @@ export const HistoryRestoreAction: DocumentActionComponent = ({id, type, revisio }, [handleConfirm, isConfirmDialogOpen, onComplete]) const isRevisionInitialVersion = revision === '@initial' + const isRevisionLatestVersion = revision === undefined // undefined means latest version + + if (isRevisionLatestVersion) { + return null + } return { label: 'Restore',