fix field

This commit is contained in:
rizky 2024-08-14 08:44:25 -07:00
parent dc4caffec6
commit 5029cc48d8
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ const prepForSum = (obj: any): any => {
new_obj[k] = v.id; new_obj[k] = v.id;
continue; continue;
} }
if (typeof v === "object" && v.connect.id) { if (typeof v === "object" && v?.connect?.id) {
new_obj[k] = v.connect.id; new_obj[k] = v.connect.id;
continue; continue;
} }