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:
+5
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user