mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 12:02:10 +03:00
Handle case where fieldValue is null (#8210)
Allow null values when updating relation to fix detach action
This commit is contained in:
parent
7b467822f1
commit
7f90ac2df8
@ -37,7 +37,7 @@ export const sanitizeRecordInput = ({
|
||||
(field) => field.name === relationIdFieldName,
|
||||
);
|
||||
|
||||
return relationIdFieldMetadataItem && fieldValue?.id
|
||||
return relationIdFieldMetadataItem
|
||||
? [relationIdFieldName, fieldValue?.id ?? null]
|
||||
: undefined;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user