Skip to content

Commit e98b07b

Browse files
authored
[Bug] Fix githubcode bug for non-ts blocks (#21849)
1 parent 684ff26 commit e98b07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/GitHubCode.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const props = z
2929
)
3030
.refine(
3131
(val) => {
32-
return val.useTypeScriptExample && val.lang === "ts";
32+
return !val.useTypeScriptExample || val.lang === "ts";
3333
},
3434
{
3535
message:

0 commit comments

Comments
 (0)