From b5442f67775005d13963ae52dcc122d1de177fe6 Mon Sep 17 00:00:00 2001 From: Byran Date: Tue, 6 Aug 2024 03:17:05 +0000 Subject: [PATCH] fix TypeError: Cannot read property 'multiple' of undefined --- .../standard-objects/workflow/instance_record_queue.object.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/standard-objects/workflow/instance_record_queue.object.js b/packages/standard-objects/workflow/instance_record_queue.object.js index 0555ca45d5..c62895a619 100644 --- a/packages/standard-objects/workflow/instance_record_queue.object.js +++ b/packages/standard-objects/workflow/instance_record_queue.object.js @@ -326,7 +326,7 @@ const updateLookupOrMasterDetailFieldValues = function (field_map_back, values, var objField = temObjFields[0]; var referObjField = temObjFields[1]; var oField = objectFields[objField]; - if (!oField.multiple && ['lookup', 'master_detail'].includes(oField.type) && _.isString(oField.reference_to)) { + if (oField && !oField.multiple && ['lookup', 'master_detail'].includes(oField.type) && _.isString(oField.reference_to)) { var oCollection = objectql.getObject(oField.reference_to) if (oCollection && record && record[objField]) { var referSetObj = {}; @@ -345,7 +345,7 @@ const updateLookupOrMasterDetailFieldValues = function (field_map_back, values, var objField = temObjFields[0]; var referObjField = temObjFields[1]; var oField = objectFields[objField]; - if (!oField.multiple && ['lookup', 'master_detail'].includes(oField.type) && _.isString(oField.reference_to)) { + if (oField && !oField.multiple && ['lookup', 'master_detail'].includes(oField.type) && _.isString(oField.reference_to)) { var oCollection = objectql.getObject(oField.reference_to) if (oCollection && record && record[objField]) { var referSetObj = {};