Skip to content

Commit 2302fba

Browse files
committed
3rd party patches
1 parent b0dd19a commit 2302fba

File tree

2 files changed

+161
-61
lines changed

2 files changed

+161
-61
lines changed

src/constants/rules-serialize.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export const RULES_SERIALIZE = [
6363
// generate id based on header text or a random string
6464
const id =
6565
children[0] && children[0][0]
66-
? (typeof children[0][0]?.props?.children === "string"
66+
? // TODO: this needs a test
67+
(typeof children[0][0]?.props?.children === "string"
6768
? children[0][0]?.props?.children
6869
: ""
6970
)

0 commit comments

Comments
 (0)