Remove empty values from relation picker (#986)
fix: empty name values in SingleEntitySelectBase
This commit is contained in:
@ -68,6 +68,10 @@ export function SingleEntitySelectBase<
|
|||||||
[onCancel],
|
[onCancel],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
entitiesInDropdown = entitiesInDropdown.filter((entity) =>
|
||||||
|
isNonEmptyString(entity.name.trim()),
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenuItemsContainer ref={containerRef} hasMaxHeight>
|
<DropdownMenuItemsContainer ref={containerRef} hasMaxHeight>
|
||||||
{entities.loading ? (
|
{entities.loading ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user