Skip to content

Commit

Permalink
fix: fix 'Cannot convert undefined or null to object' error when past…
Browse files Browse the repository at this point in the history
…ing content with header formatting (#134)
  • Loading branch information
kagol authored Nov 29, 2024
1 parent 3887d70 commit 46544db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fluent-editor/src/table/utils/node-matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export function matchHeader(node, delta) {
delta.forEach((op) => {
newDelta.insert(
op.insert,
Object.assign(op.attributes, {
Object.assign({}, op.attributes, {
size: fontSize,
}),
)
Expand Down

0 comments on commit 46544db

Please sign in to comment.