From 386634ac8f03a1dcb8b314956ef01b674a34375f Mon Sep 17 00:00:00 2001 From: Karen Rasmussen Date: Thu, 2 Apr 2026 16:49:40 -0300 Subject: [PATCH] Revert "Temporarily disable fix introduced in #7477" This reverts commit 5589e5cdaaa5664ce602936e951c37112965b244. --- src/sidebar/components/SidebarTabs.tsx | 7 ++++--- src/sidebar/components/test/SidebarTabs-test.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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); }); });