Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Dec 17, 2024
1 parent 54ec489 commit b001259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ function resolveFrontmatterVariables(
frontmatterData: FrontmatterData,
reflection: Reflection
): FrontmatterData {
const tempFrontmatterData = Object.assign({}, frontmatterData)
const tempFrontmatterData: FrontmatterData = JSON.parse(
JSON.stringify(frontmatterData)
)
Object.keys(tempFrontmatterData).forEach((key) => {
const value = tempFrontmatterData[key]
if (!value) {
if (!value || typeof value !== "string") {
return
}

Expand Down
2 changes: 1 addition & 1 deletion www/utils/packages/types/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export type FrontmatterData = {
sidebar_label?: string
displayed_sidebar?: string
tags?: string[]
[k: string]: string
[k: string]: unknown
}

export type FormattingOptionType = {
Expand Down

0 comments on commit b001259

Please sign in to comment.