Skip to content

Commit 518523c

Browse files
Revert "Temporarily disable fix introduced in #7477"
This reverts commit 5589e5c.
1 parent 43727f3 commit 518523c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/sidebar/components/SidebarTabs.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
<>

src/sidebar/components/test/SidebarTabs-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)