mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-05 12:07:16 +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(
|
showErrorToast(
|
||||||
err as AxiosError,
|
err as AxiosError,
|
||||||
t('server.entity-fetch-error', {
|
t('server.entity-fetch-error', {
|
||||||
entity: t('label.lineage-data-lowercase'),
|
entity: t('label.suggestion-lowercase-plural'),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@ -45,7 +45,7 @@ const SuggestionsSlider = () => {
|
|||||||
data-testid="more-suggestion-button"
|
data-testid="more-suggestion-button"
|
||||||
loading={loading}
|
loading={loading}
|
||||||
type="primary"
|
type="primary"
|
||||||
onClick={fetchSuggestions}>
|
onClick={() => fetchSuggestions()}>
|
||||||
{t('label.plus-count-more', {
|
{t('label.plus-count-more', {
|
||||||
count: suggestionLimit - 10, // 10 is the default limit, and only show count of pending suggestions
|
count: suggestionLimit - 10, // 10 is the default limit, and only show count of pending suggestions
|
||||||
})}
|
})}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user