mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 09:02:11 +03:00
Remove empty values from relation picker (#986)
fix: empty name values in SingleEntitySelectBase
This commit is contained in:
parent
5c376cbabb
commit
dc18bc40b0
@ -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 ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user