Skip to content
Snippets Groups Projects
Commit fdd87283 authored by chris's avatar chris
Browse files

empty fix

parent f3a26856
No related branches found
No related tags found
1 merge request!190Find and replace
......@@ -30,7 +30,11 @@ const trackedTransaction = (tr, state, user, group = 'main') => {
let node;
if ($pos.depth === 1) {
node = $pos.node($pos.depth);
if (node.content.content[0].type.name === 'image') return tr;
if (
node.content.content[0] &&
node.content.content[0].type.name === 'image'
)
return tr;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment