Fixed ACTOR advanced filter recent regressions (#12813)

This PR fixes recent regressions on advanced filters for the ACTOR field
type.

- The new `isFilterable` props on
`SETTINGS_COMPOSITE_FIELD_TYPE_CONFIGS` wasn't taken into account for
sub field picker in advanced filter.
- A wrong component instance id was passed to
`subFieldNameUsedInDropdownComponentState`
This commit is contained in:
Lucas Bordeau
2025-06-24 13:57:18 +02:00
committed by GitHub
parent 81d70e6fa3
commit 48347095d2
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,6 @@ export const AdvancedFilterDropdownFilterInput = ({
}: AdvancedFilterDropdownFilterInputProps) => {
const subFieldNameUsedInDropdown = useRecoilComponentValueV2(
subFieldNameUsedInDropdownComponentState,
filterDropdownId,
);
const filterType = recordFilter.type;

View File

@ -94,7 +94,9 @@ export const AdvancedFilterSubFieldSelectMenu = ({
const subFieldNames = SETTINGS_COMPOSITE_FIELD_TYPE_CONFIGS[
objectFilterDropdownSubMenuFieldType
].subFields.map((subField) => subField.subFieldName);
].subFields
.filter((subField) => subField.isFilterable === true)
.map((subField) => subField.subFieldName);
const subFieldsAreFilterable =
isDefined(fieldMetadataItemUsedInDropdown) &&