File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -507,10 +507,10 @@ export class Sync {
507
507
lastCommonContentType : node . common . contentType
508
508
} ) ;
509
509
510
- if ( node . remote . body ) {
511
- node . common = node . remote ;
512
- } else {
510
+ if ( node . remote . body === false ) {
513
511
node . common = { } ;
512
+ } else {
513
+ node . common = node . remote ;
514
514
}
515
515
delete node . remote ;
516
516
delete node . local ;
@@ -562,12 +562,12 @@ export class Sync {
562
562
newContentType : node . remote . contentType
563
563
} ;
564
564
565
- if ( change . oldValue || change . newValue ) {
565
+ if ( change . oldValue !== undefined || change . newValue !== undefined ) {
566
566
this . rs . local . emitChange ( change ) ;
567
567
}
568
568
569
- if ( ! node . remote . body ) { // no remote, so delete/don't create
570
- return ;
569
+ if ( node . remote . body === false ) {
570
+ return ; // no remote, so delete
571
571
}
572
572
573
573
node . common = node . remote ;
@@ -762,7 +762,7 @@ export class Sync {
762
762
}
763
763
}
764
764
765
- if ( typeof ( node ) !== 'object' ||
765
+ if ( typeof ( node ) !== 'object' ||
766
766
node . path !== path ||
767
767
typeof ( node . common ) !== 'object' ) {
768
768
node = { path : path , common : { } } ;
You can’t perform that action at this time.
0 commit comments