mirror of
https://github.com/cudr/slate-collaborative.git
synced 2024-10-27 20:34:06 +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) {
|
||||
let slateOps: any[]
|
||||
try {
|
||||
slateOps = toSlateOp(operations, current)
|
||||
slateOps = toSlateOp(operations, current) || []
|
||||
} catch (err) {
|
||||
e.handleError(err, {
|
||||
type: 'applyOperation - toSlateOp',
|
||||
|
Loading…
Reference in New Issue
Block a user