Skip to content

Commit

Permalink
test(core): fix reference e2e test (#7772)
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias authored Nov 7, 2024
1 parent 327db99 commit 2d3951a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions packages/sanity/src/core/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d3951a

Please sign in to comment.