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

fix

parent 614bf58b
No related branches found
No related tags found
1 merge request!543pass viewId
......@@ -32,7 +32,7 @@ const acceptTrackChange = (
selection: { to },
} = state;
if (trackData?.node.type.name === 'figure') {
if (trackData?.node?.type?.name === 'figure') {
to = from + 3;
}
......
......@@ -37,10 +37,10 @@ const rejectTrackChange = (
selection: { to },
} = state;
if (trackData?.node.type.name === 'figure') {
if (trackData?.node?.type?.name === 'figure') {
to = from + 3;
}
console.log('reject');
tr.setMeta('AcceptReject', true);
const map = new Mapping();
......
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