File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/json-crdt/codec/structural/verbose Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export class Decoder {
9898 if ( typeof ( c as types . JsonCrdtRgaTombstone ) . span === 'number' )
9999 return new nodes . ArrChunk ( id , ( c as types . JsonCrdtRgaTombstone ) . span , undefined ) ;
100100 else {
101- const ids = ( c as types . ArrayJsonCrdtChunk ) . nodes . map ( ( n ) => this . cNode ( doc , n ) . id ) ;
101+ const ids = ( c as types . ArrayJsonCrdtChunk ) . value . map ( ( n ) => this . cNode ( doc , n ) . id ) ;
102102 return new nodes . ArrChunk ( id , ids . length , ids ) ;
103103 }
104104 } ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export class Encoder {
9494 const index = this . model . index ;
9595 const res : types . ArrayJsonCrdtChunk = {
9696 id : this . cTs ( chunk . id ) ,
97- nodes : chunk . data ! . map ( ( n ) => this . cNode ( index . get ( n ) ! ) ) ,
97+ value : chunk . data ! . map ( ( n ) => this . cNode ( index . get ( n ) ! ) ) ,
9898 } ;
9999 return res ;
100100 }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export interface ArrayJsonCrdtNode {
102102
103103export interface ArrayJsonCrdtChunk {
104104 id : JsonCrdtTimestamp ;
105- nodes : JsonCrdtNode [ ] ;
105+ value : JsonCrdtNode [ ] ;
106106}
107107
108108/**
You can’t perform that action at this time.
0 commit comments