RelationInputDataManager: Resolve todo and fix labelLoadMore prop-type

This commit is contained in:
Gustav Hansen 2022-10-06 15:01:46 +02:00
parent 5b46793f36
commit 3f2c6fb440

View File

@ -153,12 +153,12 @@ export const RelationInputDataManager = ({
})} ${initialData[name]?.count !== undefined ? `(${initialData[name].count})` : ''}`}
labelAction={labelAction}
labelLoadMore={
// TODO: only display if there are more; derive from count
!isCreatingEntry &&
formatMessage({
!isCreatingEntry
? formatMessage({
id: getTrad('relation.loadMore'),
defaultMessage: 'Load More',
})
: null
}
listHeight={320}
loadingMessage={() =>