diff --git a/admin/src/hooks/usePreviewButton.ts b/admin/src/hooks/usePreviewButton.ts index 833fdef..44d26af 100644 --- a/admin/src/hooks/usePreviewButton.ts +++ b/admin/src/hooks/usePreviewButton.ts @@ -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);