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

add check for view

parent 768f8559
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,8 @@ const WaxView = forwardRef((props, ref) => {
? trackedTransaction(transaction, view.state, user, context)
: transaction;
if (!view) return;
previousDoc = view.state.doc;
const state = view.state.apply(tr);
view.updateState(state);
......
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