File tree Expand file tree Collapse file tree
e2e/__tests__/app-impress Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ test.describe('Doc Version', () => {
142142 const thread = page . locator ( '.bn-thread' ) ;
143143 await thread . getByRole ( 'paragraph' ) . first ( ) . fill ( 'This is a comment' ) ;
144144 await thread . locator ( '[data-test="save"]' ) . click ( ) ;
145+ await expect ( thread ) . toBeHidden ( ) ;
145146
146147 await goToGridDoc ( page , {
147148 title : randomDoc ,
Original file line number Diff line number Diff line change 11import { CommentBody , ThreadStore } from '@blocknote/core/comments' ;
22import type { Awareness } from 'y-protocols/awareness' ;
33
4- import { APIError , APIList , errorCauses , fetchAPI } from '@/api' ;
4+ import { APIError , errorCauses , fetchAPI } from '@/api' ;
55import { Doc } from '@/features/docs/doc-management' ;
66
77import { useEditorStore } from '../../stores' ;
@@ -15,7 +15,7 @@ import {
1515 ServerThread ,
1616} from './types' ;
1717
18- type ServerThreadListResponse = APIList < ServerThread > ;
18+ type ServerThreadListResponse = ServerThread [ ] ;
1919
2020export class DocsThreadStore extends ThreadStore {
2121 protected static COMMENTS_PING = 'commentsPing' ;
@@ -335,7 +335,7 @@ export class DocsThreadStore extends ThreadStore {
335335
336336 const threads = ( await response . json ( ) ) as ServerThreadListResponse ;
337337 const next = new Map < string , ClientThreadData > ( ) ;
338- threads . results . forEach ( ( thread ) => {
338+ threads . forEach ( ( thread ) => {
339339 const threadData : ClientThreadData = serverThreadToClientThread ( thread ) ;
340340 next . set ( thread . id , threadData ) ;
341341 } ) ;
You can’t perform that action at this time.
0 commit comments