Skip to content

Commit

Permalink
docs: fix code tabs in production (medusajs#10784)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Dec 31, 2024
1 parent 1ef3e4b commit a0a94d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/packages/docs-ui/src/components/CodeTabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export const CodeTabs = ({

if (
typeof codeBlock.type !== "string" &&
"name" in codeBlock.type &&
codeBlock.type.name === "CodeBlock"
(("name" in codeBlock.type && codeBlock.type.name === "CodeBlock") ||
"source" in codeBlockProps)
) {
codeBlockProps = {
...codeBlockProps,
Expand Down

0 comments on commit a0a94d5

Please sign in to comment.