Skip to content

Commit 554c2db

Browse files
committed
fix(V2): align hasOwnershipFields null check with collectOwnerOrgUids
hasOwnershipFields treated explicit null FK values as "present" while collectOwnerOrgUids skips them, causing a misleading "cannot determine owner" error on UPDATE payloads with null parent references.
1 parent 8fc5963 commit 554c2db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/models/v2/staging-v2.model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class StagingV2 extends Model {
217217
StagingV2.getOwnershipParentModels()
218218
.filter(([fieldName]) => fieldName !== primaryKeyApiField)
219219
.some(([fieldName]) => (
220-
StagingV2.getRecordField(record, fieldName) !== undefined
220+
StagingV2.getRecordField(record, fieldName) != null
221221
)),
222222
);
223223
}

0 commit comments

Comments
 (0)