fetchAndApplyDraft
This function fetches and applies the draft to the site or page if the draft is available.
It returns a completely new object with the draft applied if there is one, otherwise it just returns the site or page model argument.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
siteOrPageModel Required | IModel | ||
hubRequestOptions Required | IHubRequestOptions |
Returns
Promise<any>
Function defined in sites/src/drafts/fetch-and-apply-draft.ts:16