Do not enrich relations when id undefined (#13530)

Fixes https://github.com/twentyhq/twenty/issues/13428
We perform the call enrichment even with id undefined. It returns the
first item in DB.

Adding two more fixes related to filters:
- Conditions title
- Fixing placeholder color for select control (only other impacted field
is in Advanced filters)
This commit is contained in:
Thomas Trompette
2025-07-31 15:40:41 +02:00
committed by GitHub
parent 42c15b11f8
commit 664fd9fabd
4 changed files with 21 additions and 4 deletions
@@ -189,6 +189,11 @@ export class DatabaseEventTriggerListener {
const joinField =
objectMetadataItemWithFieldsMaps.fieldsById[joinFieldId];
const joinRecordId = record[joinColumnName];
if (!isDefined(joinRecordId)) {
continue;
}
const relatedObjectMetadataId = joinField.relationTargetObjectMetadataId;
if (!isDefined(relatedObjectMetadataId)) {