y-prosemirror
Advanced tools
Comparing version 1.0.17 to 1.0.18
{ | ||
"name": "y-prosemirror", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -5,0 +5,0 @@ "main": "./dist/y-prosemirror.cjs", |
@@ -29,3 +29,3 @@ import { updateYFragment } from './plugins/sync-plugin.js' // eslint-disable-line | ||
const syncState = ySyncPluginKey.getState(view.state) | ||
if (syncState.binding && !syncState.binding.isDestroyed) { | ||
if (syncState && syncState.binding && !syncState.binding.isDestroyed) { | ||
metas.forEach((val, key) => { | ||
@@ -32,0 +32,0 @@ tr.setMeta(key, val) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
216910