From 78386d010212d3bebbcb177fccd5922247ab9642 Mon Sep 17 00:00:00 2001 From: Subina Date: Wed, 20 Dec 2023 09:43:08 +0545 Subject: [PATCH] Minor fixes - Remove entries count - Change empty message in auto entries modal --- .../LeftPane/AutoEntriesModal/index.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/app/views/EntryEdit/LeftPane/AutoEntriesModal/index.tsx b/app/views/EntryEdit/LeftPane/AutoEntriesModal/index.tsx index 7e1f1b2b60..a018fc63b8 100644 --- a/app/views/EntryEdit/LeftPane/AutoEntriesModal/index.tsx +++ b/app/views/EntryEdit/LeftPane/AutoEntriesModal/index.tsx @@ -85,12 +85,6 @@ const AUTO_ENTRIES_FOR_LEAD = gql` ) { project(id: $projectId) { id - lead(id: $leadId) { - draftEntryStat { - discardedDraftEnrty - undiscardedDraftEntry - } - } assistedTagging { draftEntryByLeads( filter: { @@ -573,8 +567,6 @@ function AutoEntriesModal(props: Props) { ]); const { - previousData, - data: autoEntries = previousData, loading: autoEntriesLoading, refetch: retriggerAutoEntriesFetch, } = useQuery( @@ -676,11 +668,6 @@ function AutoEntriesModal(props: Props) { }, ); - const discardedEntriesCount = autoEntries?.project?.lead - ?.draftEntryStat?.discardedDraftEnrty ?? 0; - const undiscardedEntriesCount = autoEntries?.project?.lead - ?.draftEntryStat?.undiscardedDraftEntry ?? 0; - const handleEntryCreateButtonClick = useCallback((entryId: string) => { if (!allRecommendations?.[entryId]) { return; @@ -946,12 +933,12 @@ function AutoEntriesModal(props: Props) { - {`All Recommendations (${undiscardedEntriesCount})`} + All Recommendations - {`Discarded Recommendations (${discardedEntriesCount})`} + Discarded Recommendations )}