mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 08:46:42 +00:00
RelationInputDataManager: Resolve todo and fix labelLoadMore prop-type
This commit is contained in:
parent
5b46793f36
commit
3f2c6fb440
@ -153,12 +153,12 @@ export const RelationInputDataManager = ({
|
|||||||
})} ${initialData[name]?.count !== undefined ? `(${initialData[name].count})` : ''}`}
|
})} ${initialData[name]?.count !== undefined ? `(${initialData[name].count})` : ''}`}
|
||||||
labelAction={labelAction}
|
labelAction={labelAction}
|
||||||
labelLoadMore={
|
labelLoadMore={
|
||||||
// TODO: only display if there are more; derive from count
|
!isCreatingEntry
|
||||||
!isCreatingEntry &&
|
? formatMessage({
|
||||||
formatMessage({
|
id: getTrad('relation.loadMore'),
|
||||||
id: getTrad('relation.loadMore'),
|
defaultMessage: 'Load More',
|
||||||
defaultMessage: 'Load More',
|
})
|
||||||
})
|
: null
|
||||||
}
|
}
|
||||||
listHeight={320}
|
listHeight={320}
|
||||||
loadingMessage={() =>
|
loadingMessage={() =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user