Skip to content

Commit

Permalink
Fix related fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Mar 25, 2024
1 parent 1492e2d commit b1437a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/document/document.js
Expand Up @@ -403,7 +403,7 @@ export class Document extends Model {
isArray(json[field]) &&
json[field].length > 0 &&
this._relationLists &&
this.relationLists[field]
this._relationLists[field]
) {
json[field] = this._relationLists[field].map((document) => ({
'@id': document.path,
Expand Down

0 comments on commit b1437a0

Please sign in to comment.