Skip to content

Commit

Permalink
Add uid prop to compileWithHooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmilburn committed Dec 14, 2024
1 parent 46c7da9 commit c3fd119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/src/hooks/usePreviewButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const usePreviewButton = (uid: UID.ContentType | undefined, data: any): UsePrevi
data,
draft: uidConfig?.draft,
published: uidConfig?.published,
uid,
});

const draftConfig = getPublishStateConfig(result?.draft as PreviewButtonStateConfig, data);
Expand Down

0 comments on commit c3fd119

Please sign in to comment.