Fix created by filter dropdown that appears on other filter types. (#11126)

Fixes https://github.com/twentyhq/twenty/issues/11077

This PR fixes a bug where the actor source filter dropdown input was
showing on other field types filter dropdown input.

It just adds a check to show this particular actor source filter
dropdown input only if the field type is ACTOR.

Sub field name reset and lifecycle will be handled in the incoming work
on sub field filtering.
This commit is contained in:
Lucas Bordeau
2025-03-25 11:26:39 +01:00
committed by GitHub
parent 4680bc740a
commit de1f8a4706

View File

@ -90,7 +90,7 @@ export const ObjectFilterDropdownFilterInput = ({
<ObjectFilterDropdownRecordSelect />
</>
)}
{isActorSourceCompositeFilter && (
{filterType === 'ACTOR' && isActorSourceCompositeFilter && (
<>
<DropdownMenuSeparator />
<ObjectFilterDropdownSourceSelect />