Skip to content

Commit

Permalink
Merge pull request #114 from contentful/fix/fix-inspector-mode-type-bug
Browse files Browse the repository at this point in the history
fix: conditionally check correct props [NONE]
  • Loading branch information
2wce authored May 15, 2023
2 parents a768f58 + c9b3661 commit db610dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ type GetInspectorModeProps<T> = (props: {
* Generates the function to build the required properties for the inspector mode (field tagging)
*/
export function useContentfulInspectorMode<
T = undefined | Pick<LivePreviewProps, 'entryId'> | Pick<LivePreviewProps, 'entryId' | 'locale'>
T = undefined | Pick<LivePreviewProps, 'entryId'> | Pick<LivePreviewProps, 'entryId' | 'fieldId'>
>(sharedProps?: T): GetInspectorModeProps<T> {
const config = useContext(ContentfulLivePreviewContext);

Expand Down

0 comments on commit db610dd

Please sign in to comment.