Skip to content

Commit

Permalink
refactor: Adjust to TagNode.content === null
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichaelis committed Oct 25, 2023
1 parent 455d962 commit d7676fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-bbcode/src/bbob/htmlSanitizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const walk = <T extends CoreTree | CoreTree[number] | CoreTree[number][]>(
}
} else {
if (isTagNode(item)) {
item.content = walk(item.content, options);
item.content = walk(item.content ?? [], options);
// Notes:
//
// * Unique-Attributes such as `[url=xyz]` are represented in BBob with
Expand Down

0 comments on commit d7676fc

Please sign in to comment.