mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-02 02:26:00 +00:00
fix error populating on suggestion more button click (#20135)
This commit is contained in:
parent
95fdc7adc4
commit
11d8e93088
@ -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 {
|
||||
|
||||
@ -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
|
||||
})}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user