Skip to content

Commit

Permalink
fix(gatsby-tinacms-mdx): useMdxForm#loadInitialValues does not run in…
Browse files Browse the repository at this point in the history
… production
  • Loading branch information
ncphillips committed Jul 30, 2020
1 parent a42d50c commit e0c2275
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-tinacms-mdx/src/useMdxForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export function useMdxForm(
{
label,
id,
loadInitialValues() {
async loadInitialValues() {
if (cms.disabled) return valuesOnDisk
return cms.api.git
.show(id) // Load the contents of this file at HEAD
.then((git: any) => {
Expand Down

0 comments on commit e0c2275

Please sign in to comment.