We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0dd19a commit 2302fbaCopy full SHA for 2302fba
src/constants/rules-serialize.js
@@ -63,7 +63,8 @@ export const RULES_SERIALIZE = [
63
// generate id based on header text or a random string
64
const id =
65
children[0] && children[0][0]
66
- ? (typeof children[0][0]?.props?.children === "string"
+ ? // TODO: this needs a test
67
+ (typeof children[0][0]?.props?.children === "string"
68
? children[0][0]?.props?.children
69
: ""
70
)
0 commit comments