diff --git a/services/web/frontend/js/features/source-editor/components/review-panel/overview-file.tsx b/services/web/frontend/js/features/source-editor/components/review-panel/overview-file.tsx index de479c886a..106e75dffc 100644 --- a/services/web/frontend/js/features/source-editor/components/review-panel/overview-file.tsx +++ b/services/web/frontend/js/features/source-editor/components/review-panel/overview-file.tsx @@ -39,7 +39,11 @@ function OverviewFile({ docId, docPath }: OverviewFileProps) { return orderedEntries }, [docEntries]) - const entryCount = Object.keys(docEntries).length + const entryCount = useMemo(() => { + return Object.keys(docEntries).filter( + key => key !== 'add-comment' && key !== 'bulk-actions' + ).length + }, [docEntries]) const handleToggleCollapsed = () => { setCollapsed({ ...collapsed, [docId]: !docCollapsed })