Skip to content

Commit

Permalink
fix(graphql-playground): Correctly passing through mdx: false
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Feb 11, 2024
1 parent a6c7546 commit 3cc2d8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-geckos-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lekoarts/gatsby-theme-graphql-playground": patch
---

Fix bug preventing someone from setting the `mdx` option to `false`
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const withDefaults = (themeOptions) => {
const basePath = themeOptions.basePath || `/`
const docsPath = themeOptions.docsPath || `docs`
const mdx = themeOptions.mdx ?? true
const mdx = typeof themeOptions.mdx === `undefined` ? true : themeOptions.mdx

return {
basePath,
Expand Down

0 comments on commit 3cc2d8c

Please sign in to comment.