From 2d3951a18fd8c88b7135d2dacc9899a788d2a3f4 Mon Sep 17 00:00:00 2001 From: RitaDias Date: Thu, 7 Nov 2024 09:59:44 +0100 Subject: [PATCH] test(core): fix reference e2e test (#7772) --- packages/sanity/src/core/config/types.ts | 2 -- .../src/structure/panes/document/DocumentPaneProvider.tsx | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/sanity/src/core/config/types.ts b/packages/sanity/src/core/config/types.ts index 141ba29b3ca..a1c46dce3fa 100644 --- a/packages/sanity/src/core/config/types.ts +++ b/packages/sanity/src/core/config/types.ts @@ -536,8 +536,6 @@ export interface DocumentActionsContext extends ConfigContext { bundleId?: string /** the perspective (version) of the open document */ perspective?: DocumentActionsPerspective - /** the revision id of the open document */ - revisionDisplay?: string } /** diff --git a/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx b/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx index 5da7c07b005..5103b38d13f 100644 --- a/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx +++ b/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx @@ -188,10 +188,9 @@ export const DocumentPaneProvider = memo((props: DocumentPaneProviderProps) => { schemaType: documentType, documentId, perspective: actionsPerspective, - _rev: value._rev, ...(bundlePerspective && {bundleId: bundlePerspective}), }), - [actionsPerspective, bundlePerspective, documentId, documentType, value._rev], + [actionsPerspective, bundlePerspective, documentId, documentType], ) // Resolve document actions