This commit is contained in:
lingdocs 2021-06-24 13:50:06 +04:00
parent 23b7b5d45a
commit fd8f0fcecf
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export function JSXMap(e: JSX.Element, f: (s: string) => string): JSX.Element {
...e.props, ...e.props,
children: typeof e.props.children === "string" children: typeof e.props.children === "string"
? f(e.props.children) ? f(e.props.children)
: e.props.children.map((x: string | JSX.Element, i: number) => { : e.props.children.map((x: string | JSX.Element) => {
if (typeof x === "string") { if (typeof x === "string") {
return f(x); return f(x);
} }