Skip to content

The open alternative to Salesforce, designed for AI.

Fix phone not empty filter (#15790)

Lucas Bordeaudd0601ab6f34
diff --git a/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts b/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts
index f7f14f0cca7..90aedd2d71d 100644
--- a/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts
+++ b/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts
@@ -740,20 +740,6 @@ describe('should work as expected for the different field types', () => {
},
],
},
- {
- or: [
- {
- phones: {
- primaryPhoneCallingCode: { is: 'NULL' },
- },
- },
- {
- phones: {
- primaryPhoneCallingCode: { ilike: '' },
- },
- },
- ],
- },
{
or: [
{
@@ -787,20 +773,6 @@ describe('should work as expected for the different field types', () => {
},
],
},
- {
- or: [
- {
- phones: {
- primaryPhoneCallingCode: { is: 'NULL' },
- },
- },
- {
- phones: {
- primaryPhoneCallingCode: { ilike: '' },
- },
- },
- ],
- },
{
or: [
{
diff --git a/packages/twenty-shared/src/utils/filter/utils/getEmptyRecordGqlOperationFilter.ts b/packages/twenty-shared/src/utils/filter/utils/getEmptyRecordGqlOperationFilter.ts
index 1288873907c..480c7f731ff 100644
--- a/packages/twenty-shared/src/utils/filter/utils/getEmptyRecordGqlOperationFilter.ts
+++ b/packages/twenty-shared/src/utils/filter/utils/getEmptyRecordGqlOperationFilter.ts
@@ -70,20 +70,6 @@ export const getEmptyRecordGqlOperationFilter = ({
},
],
},
- {
- or: [
- {
- [correspondingField.name]: {
- primaryPhoneCallingCode: { is: 'NULL' },
- } as PhonesFilter,
- },
- {
- [correspondingField.name]: {
- primaryPhoneCallingCode: { ilike: '' },
- } as PhonesFilter,
- },
- ],
- },
{
or: [
{