Skip to content

Commit 7679c50

Browse files
committed
fix: ensure content is array when recursing
1 parent 4390f31 commit 7679c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function walk(options, node) {
6060
}
6161

6262
// Now we recurse through the nested content if content exists
63-
if (node.content) {
63+
if (Array.isArray(node.content)) {
6464
return Promise.all(node.content.map(childNode => walk(options, childNode)))
6565
.then(updatedContent => {
6666
// Update the node content after promises are resolved

0 commit comments

Comments
 (0)