Implemented PHONES sub-field filtering (#11953)
This PR implements sub-field filtering for the PHONES field type. What was tricky was to have filtering work correctly on the additionalPhones sub-field, which is an array of objects and is treated as a RawJsonFilter. Now that it works for this sub-field, we can implement the same logic for other similar sub-field like additionalEmails and secondaryLinks.
This commit is contained in:
@ -102,9 +102,14 @@ export const SETTINGS_COMPOSITE_FIELD_TYPE_CONFIGS = {
|
||||
subFields: [
|
||||
'primaryPhoneNumber',
|
||||
'primaryPhoneCountryCode',
|
||||
'primaryPhoneCallingCode',
|
||||
'additionalPhones',
|
||||
],
|
||||
filterableSubFields: [
|
||||
'primaryPhoneNumber',
|
||||
'primaryPhoneCallingCode',
|
||||
'additionalPhones',
|
||||
],
|
||||
filterableSubFields: ['primaryPhoneNumber', 'primaryPhoneCountryCode'],
|
||||
labelBySubField: {
|
||||
primaryPhoneNumber: 'Primary Phone Number',
|
||||
primaryPhoneCountryCode: 'Primary Phone Country Code',
|
||||
|
||||
Reference in New Issue
Block a user