File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,9 @@ export class Feed implements types.FeedApi, SyncStore<types.FeedOpInsert[]> {
192192 curr = frames [ i ] ;
193193 }
194194 let existingCurr : FeedFrame | null = this . head ;
195- while ( existingCurr && existingCurr . seq ( ) > curr . seq ( ) )
196- existingCurr = existingCurr . prev ;
197- if ( existingCurr ) curr . prev = existingCurr . prev ; else this . tail = curr ;
195+ while ( existingCurr && existingCurr . seq ( ) > curr . seq ( ) ) existingCurr = existingCurr . prev ;
196+ if ( existingCurr ) curr . prev = existingCurr . prev ;
197+ else this . tail = curr ;
198198 this . head = head ;
199199 this . onChange . emit ( ) ;
200200 }
@@ -238,7 +238,7 @@ export class Feed implements types.FeedApi, SyncStore<types.FeedOpInsert[]> {
238238 const prevCidDto = tail . data [ 0 ] ;
239239 if ( ! prevCidDto ) return ;
240240 const cid = Cid . fromBinaryV1 ( prevCidDto ) ;
241- const frame = this . tail ?. prev ?? await FeedFrame . read ( cid , this . deps . cas ) ;
241+ const frame = this . tail ?. prev ?? ( await FeedFrame . read ( cid , this . deps . cas ) ) ;
242242 tail . prev = frame ;
243243 this . tail = frame ;
244244 this . ingestFrameData ( frame ) ;
You can’t perform that action at this time.
0 commit comments