From 11d8e930888d4a41b82185e38f3d6ce838b9e996 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Fri, 7 Mar 2025 21:40:26 +0530 Subject: [PATCH] fix error populating on suggestion more button click (#20135) --- .../Suggestions/SuggestionsProvider/SuggestionsProvider.tsx | 2 +- .../Suggestions/SuggestionsSlider/SuggestionsSlider.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsProvider/SuggestionsProvider.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsProvider/SuggestionsProvider.tsx index 2f8952896e0..646195523c4 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsProvider/SuggestionsProvider.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsProvider/SuggestionsProvider.tsx @@ -99,7 +99,7 @@ const SuggestionsProvider = ({ children }: { children?: ReactNode }) => { showErrorToast( err as AxiosError, t('server.entity-fetch-error', { - entity: t('label.lineage-data-lowercase'), + entity: t('label.suggestion-lowercase-plural'), }) ); } finally { diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsSlider/SuggestionsSlider.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsSlider/SuggestionsSlider.tsx index 51fc575e0ee..59f2ef81f90 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsSlider/SuggestionsSlider.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsSlider/SuggestionsSlider.tsx @@ -45,7 +45,7 @@ const SuggestionsSlider = () => { data-testid="more-suggestion-button" loading={loading} type="primary" - onClick={fetchSuggestions}> + onClick={() => fetchSuggestions()}> {t('label.plus-count-more', { count: suggestionLimit - 10, // 10 is the default limit, and only show count of pending suggestions })}