This commit is contained in:
Philipp Kühn
2020-04-11 14:17:31 +02:00
parent 9c4b63f008
commit 1e7231286d
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ export default function getNodeAttrs(state: EditorState, type: NodeType) {
.find(nodeItem => nodeItem.type.name === type.name)
if (node) {
return node.attrs
return { ...node.attrs }
}
return {}