From b1437a0bdfc0815081f8741f09bc288e21a7906d Mon Sep 17 00:00:00 2001 From: Rob Gietema Date: Mon, 25 Mar 2024 10:08:58 +0100 Subject: [PATCH] Fix related fields. --- src/models/document/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/document/document.js b/src/models/document/document.js index dd50c0f..d40191f 100644 --- a/src/models/document/document.js +++ b/src/models/document/document.js @@ -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,