fix error populating on suggestion more button click (#20135)

This commit is contained in:
Ashish Gupta 2025-03-07 21:40:26 +05:30 committed by GitHub
parent 95fdc7adc4
commit 11d8e93088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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
})}