mirror of
https://github.com/cudr/slate-collaborative.git
synced 2025-06-13 12:54:04 +00:00
fix: slateOps undefined on toSlateOp error
This commit is contained in:
parent
5832eee291
commit
89dafd78b9
@ -132,7 +132,7 @@ export const AutomergeConnector = {
|
|||||||
if (operations.length) {
|
if (operations.length) {
|
||||||
let slateOps: any[]
|
let slateOps: any[]
|
||||||
try {
|
try {
|
||||||
slateOps = toSlateOp(operations, current)
|
slateOps = toSlateOp(operations, current) || []
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
e.handleError(err, {
|
e.handleError(err, {
|
||||||
type: 'applyOperation - toSlateOp',
|
type: 'applyOperation - toSlateOp',
|
||||||
|
Loading…
Reference in New Issue
Block a user