X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b35b62d59ff057ce5cfbc5fb463431b086f5c830..56b9107c6b47dd84aa91f4f1660ab9ecaf695fd8:/resources/js/wysiwyg/lexical/selection/lexical-node.ts diff --git a/resources/js/wysiwyg/lexical/selection/lexical-node.ts b/resources/js/wysiwyg/lexical/selection/lexical-node.ts index 82f7d330e..1f7e4c6da 100644 --- a/resources/js/wysiwyg/lexical/selection/lexical-node.ts +++ b/resources/js/wysiwyg/lexical/selection/lexical-node.ts @@ -262,7 +262,7 @@ function $patchStyle( } return styles; }, - {...prevStyles} || {}, + {...prevStyles}, ); const newCSSText = getCSSFromStyleObject(newStyles); target.setStyle(newCSSText);