diff --git a/src/sidebar/components/SidebarTabs.tsx b/src/sidebar/components/SidebarTabs.tsx index 3c15e693afa..8423b7eac6a 100644 --- a/src/sidebar/components/SidebarTabs.tsx +++ b/src/sidebar/components/SidebarTabs.tsx @@ -111,6 +111,7 @@ function SidebarTabs({ annotationsService, isLoading, settings, + frameSync, }: SidebarTabsProps) { const { rootThread, tabCounts } = useRootThread(); const store = useSidebarStore(); @@ -147,9 +148,9 @@ function SidebarTabs({ const tabCountsSummary = tabCountsSummaryPieces.join(', '); const createPageNoteWithDocumentMeta = useCallback(async () => { - // const { metadata } = await frameSync.getDocumentInfo(); - annotationsService.createPageNote(/* metadata */); - }, [annotationsService]); + const { metadata } = await frameSync.getDocumentInfo(); + annotationsService.createPageNote(metadata); + }, [annotationsService, frameSync]); return ( <> diff --git a/src/sidebar/components/test/SidebarTabs-test.js b/src/sidebar/components/test/SidebarTabs-test.js index 35fa27fe86b..d66771bdaca 100644 --- a/src/sidebar/components/test/SidebarTabs-test.js +++ b/src/sidebar/components/test/SidebarTabs-test.js @@ -166,7 +166,7 @@ describe('SidebarTabs', () => { .props() .onClick(); - // assert.calledOnce(fakeFrameSync.getDocumentInfo); + assert.calledOnce(fakeFrameSync.getDocumentInfo); assert.calledOnce(fakeAnnotationsService.createPageNote); }); });