File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ function SidebarTabs({
111111 annotationsService,
112112 isLoading,
113113 settings,
114+ frameSync,
114115} : SidebarTabsProps ) {
115116 const { rootThread, tabCounts } = useRootThread ( ) ;
116117 const store = useSidebarStore ( ) ;
@@ -147,9 +148,9 @@ function SidebarTabs({
147148 const tabCountsSummary = tabCountsSummaryPieces . join ( ', ' ) ;
148149
149150 const createPageNoteWithDocumentMeta = useCallback ( async ( ) => {
150- // const { metadata } = await frameSync.getDocumentInfo();
151- annotationsService . createPageNote ( /* metadata */ ) ;
152- } , [ annotationsService ] ) ;
151+ const { metadata } = await frameSync . getDocumentInfo ( ) ;
152+ annotationsService . createPageNote ( metadata ) ;
153+ } , [ annotationsService , frameSync ] ) ;
153154
154155 return (
155156 < >
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ describe('SidebarTabs', () => {
166166 . props ( )
167167 . onClick ( ) ;
168168
169- // assert.calledOnce(fakeFrameSync.getDocumentInfo);
169+ assert . calledOnce ( fakeFrameSync . getDocumentInfo ) ;
170170 assert . calledOnce ( fakeAnnotationsService . createPageNote ) ;
171171 } ) ;
172172 } ) ;
You can’t perform that action at this time.
0 commit comments