@@ -507,17 +507,19 @@ export class Sync {
507507 node = mergeMutualDeletion ( node ) ;
508508 delete node . remote ;
509509 } else if ( node . remote . body !== undefined ) {
510- log ( '[Sync] Emitting conflict event' ) ;
511- setTimeout ( this . rs . local . emitChange . bind ( this . rs . local ) , 10 , {
512- origin : 'conflict' ,
513- path : node . path ,
514- oldValue : node . local . body ,
515- newValue : node . remote . body ,
516- lastCommonValue : node . common . body ,
517- oldContentType : node . local . contentType ,
518- newContentType : node . remote . contentType ,
519- lastCommonContentType : node . common . contentType
520- } ) ;
510+ if ( node . remote . body !== false && node . local ?. body !== false ) {
511+ log ( '[Sync] Emitting conflict event' ) ;
512+ setTimeout ( this . rs . local . emitChange . bind ( this . rs . local ) , 10 , {
513+ origin : 'conflict' ,
514+ path : node . path ,
515+ oldValue : node . local . body ,
516+ newValue : node . remote . body ,
517+ lastCommonValue : node . common . body ,
518+ oldContentType : node . local . contentType ,
519+ newContentType : node . remote . contentType ,
520+ lastCommonContentType : node . common . contentType
521+ } ) ;
522+ }
521523
522524 if ( node . remote . body === false ) {
523525 node . common = { } ;
0 commit comments