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 {
98
98
if ( typeof ( c as types . JsonCrdtRgaTombstone ) . span === 'number' )
99
99
return new nodes . ArrChunk ( id , ( c as types . JsonCrdtRgaTombstone ) . span , undefined ) ;
100
100
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 ) ;
102
102
return new nodes . ArrChunk ( id , ids . length , ids ) ;
103
103
}
104
104
} ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export class Encoder {
94
94
const index = this . model . index ;
95
95
const res : types . ArrayJsonCrdtChunk = {
96
96
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 ) ! ) ) ,
98
98
} ;
99
99
return res ;
100
100
}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export interface ArrayJsonCrdtNode {
102
102
103
103
export interface ArrayJsonCrdtChunk {
104
104
id : JsonCrdtTimestamp ;
105
- nodes : JsonCrdtNode [ ] ;
105
+ value : JsonCrdtNode [ ] ;
106
106
}
107
107
108
108
/**
You can’t perform that action at this time.
0 commit comments