mirror of
https://github.com/directus/directus.git
synced 2026-01-24 12:28:03 -05:00
fix occasional typeerror in payload service (#5763)
This commit is contained in:
committed by
GitHub
parent
8769ac4c56
commit
1cc9900317
@@ -376,10 +376,10 @@ export class PayloadService {
|
||||
});
|
||||
|
||||
const relatedRecord: Partial<Item> = payload[relation.many_field];
|
||||
const hasPrimaryKey = relation.one_primary in relatedRecord;
|
||||
|
||||
if (['string', 'number'].includes(typeof relatedRecord)) continue;
|
||||
|
||||
const hasPrimaryKey = relation.one_primary in relatedRecord;
|
||||
let relatedPrimaryKey: PrimaryKey = relatedRecord[relation.one_primary];
|
||||
|
||||
const exists =
|
||||
|
||||
Reference in New Issue
Block a user